From fee66eb2cd75fdc22c7e858d2df0897e07b440fa Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 1 Oct 2018 23:23:06 -0600 Subject: [PATCH] Set default err503File variable to 503.html in scriptPath --- backup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index b99a3ce..7d7779a 100755 --- a/backup.sh +++ b/backup.sh @@ -133,6 +133,10 @@ function cleanup { scriptPath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" scriptName="$( basename ${0} )" logFile="$scriptPath/${scriptName%.*}.log" + +# set default 503 error page name and location in scriptPath +err503File="$scriptPath/503.html" + # set borg parameters to 'normal' verbosity borgCreateParams='--stats' borgPruneParams='--list' @@ -141,7 +145,6 @@ borgPruneParams='--list' ### Set script parameters to null and initialize array variables unset PARAMS unset sqlDumpDir -unset err503File unset webroot unset ncRoot errorExplain=()