deploy ➔ restore

This commit is contained in:
committer@tuxwarrior
2026-03-17 06:30:23 -05:00
parent 0ec6932661
commit 2cc037e672

View File

@@ -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