From 5df96bf69db031c4c7de555e87297d9cd391965d Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 24 May 2019 20:41:00 -0600 Subject: [PATCH] add switch param to enable 503 copying --- backup_new.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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