add switch param to enable 503 copying
This commit is contained in:
parent
c0e77c7336
commit
5df96bf69d
@ -86,6 +86,7 @@ borgPruneParams='--list'
|
|||||||
configDetails="$scriptPath/seafbackup.details"
|
configDetails="$scriptPath/seafbackup.details"
|
||||||
|
|
||||||
# 503 related
|
# 503 related
|
||||||
|
use503=0
|
||||||
err503Path="$scriptPath/503_backup.html"
|
err503Path="$scriptPath/503_backup.html"
|
||||||
err503File="${err503Path##*/}"
|
err503File="${err503Path##*/}"
|
||||||
webroot="/usr/share/nginx/html"
|
webroot="/usr/share/nginx/html"
|
||||||
@ -134,7 +135,11 @@ while [ $# -gt 0 ]; do
|
|||||||
badParam empty "$@"
|
badParam empty "$@"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-5|--503)
|
-5|--use-503)
|
||||||
|
# enable copying 503 error page to webroot
|
||||||
|
use503=1
|
||||||
|
;;
|
||||||
|
--503-path)
|
||||||
# FULL path to 503 file
|
# FULL path to 503 file
|
||||||
if [ -n "$2" ]; then
|
if [ -n "$2" ]; then
|
||||||
if [ -f "$2" ]; then
|
if [ -f "$2" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user