From d0d3cf8da1877a383a92c5e372116a49cf9eb8bf Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 1 Oct 2018 23:57:57 -0600 Subject: [PATCH] Changed parameter -5 to path, derrive err503File --- backup.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backup.sh b/backup.sh index 38b72eb..d9c66a0 100755 --- a/backup.sh +++ b/backup.sh @@ -139,7 +139,8 @@ scriptName="$( basename ${0} )" logFile="$scriptPath/${scriptName%.*}.log" # 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 borgCreateParams='--stats' @@ -194,8 +195,8 @@ while getopts ':l:n:v5:w:' PARAMS; do borgPruneParams='--list' ;; 5) - # 503 error page name - err503File="${OPTARG}" + # Full path to 503 error page + err503Path="${OPTARG%/}" ;; w) # path to webserver webroot to copy 503 error page