Changed parameter -5 to path, derrive err503File
This commit is contained in:
parent
bb0c5b2f66
commit
d0d3cf8da1
@ -139,7 +139,8 @@ scriptName="$( basename ${0} )"
|
|||||||
logFile="$scriptPath/${scriptName%.*}.log"
|
logFile="$scriptPath/${scriptName%.*}.log"
|
||||||
|
|
||||||
# set default 503 error page name and location in scriptPath
|
# set default 503 error page name and location in scriptPath
|
||||||
err503File="$scriptPath/503.html"
|
err503Path="$scriptPath/503.html"
|
||||||
|
err503File="${err503Path##*/}"
|
||||||
|
|
||||||
# set borg parameters to 'normal' verbosity
|
# set borg parameters to 'normal' verbosity
|
||||||
borgCreateParams='--stats'
|
borgCreateParams='--stats'
|
||||||
@ -194,8 +195,8 @@ while getopts ':l:n:v5:w:' PARAMS; do
|
|||||||
borgPruneParams='--list'
|
borgPruneParams='--list'
|
||||||
;;
|
;;
|
||||||
5)
|
5)
|
||||||
# 503 error page name
|
# Full path to 503 error page
|
||||||
err503File="${OPTARG}"
|
err503Path="${OPTARG%/}"
|
||||||
;;
|
;;
|
||||||
w)
|
w)
|
||||||
# path to webserver webroot to copy 503 error page
|
# path to webserver webroot to copy 503 error page
|
||||||
|
Loading…
Reference in New Issue
Block a user