diff --git a/backup_new.sh b/backup_new.sh index de9275c..9b2148e 100755 --- a/backup_new.sh +++ b/backup_new.sh @@ -86,6 +86,7 @@ borgPruneParams='--list' configDetails="$scriptPath/seafbackup.details" # 503 related +use503=0 err503Path="$scriptPath/503_backup.html" err503File="${err503Path##*/}" webroot="/usr/share/nginx/html" @@ -134,7 +135,11 @@ while [ $# -gt 0 ]; do badParam empty "$@" fi ;; - -5|--503) + -5|--use-503) + # enable copying 503 error page to webroot + use503=1 + ;; + --503-path) # FULL path to 503 file if [ -n "$2" ]; then if [ -f "$2" ]; then