deploy ➔ restore
This commit is contained in:
@@ -67,9 +67,9 @@ backupDeploy() {
|
||||
fi
|
||||
|
||||
|
||||
elif [[ "${operation}" == "deploy" ]]; then
|
||||
elif [[ "${operation}" == "restore" ]]; then
|
||||
|
||||
echo "deploying config files and restarting nwg-panel..."
|
||||
echo "restoring config files (copy from repo) and restarting nwg-panel..."
|
||||
|
||||
cp -v -r ${repo_dir}/* ${nwgp_dir}
|
||||
pkill nwg-panel > /dev/null 2>&1
|
||||
@@ -92,8 +92,8 @@ backupDeploy() {
|
||||
|
||||
this_file_name=`basename "$0"`
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "error: operation {backup|deploy|restart} is missing."
|
||||
echo "usage: '$this_file_name {backup|deploy|restart}'"
|
||||
echo "error: operation {backup|restore|restart} is missing."
|
||||
echo "usage: '$this_file_name {backup|restore|restart}'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user