add switch param to enable 503 copying

This commit is contained in:
Asif Bacchus 2019-05-24 20:41:00 -06:00
parent c0e77c7336
commit 5df96bf69d
1 changed files with 6 additions and 1 deletions

View File

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