From b3d1b3ea65b2c133b82fc3e924a0fe7e1f675770 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 1 Oct 2018 23:59:26 -0600 Subject: [PATCH] Updated 503 copy section to use err503Path --- backup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backup.sh b/backup.sh index d9c66a0..1b5ec89 100755 --- a/backup.sh +++ b/backup.sh @@ -263,8 +263,8 @@ else # webroot exists echo -e "${op}${stamp} Using webroot: ${lit}${webroot}${normal}" \ >> "$logFile" - # Verify 503 file existance - checkExist ff "$err503File" + # Verify 503 file existance at given path + checkExist ff "$err503Path" checkResult="$?" if [ "$checkResult" = "1" ]; then # 503 file could not be found @@ -276,7 +276,7 @@ else echo -e "${op}${stamp} ${err503File} found.${normal}" >> "$logFile" echo -e "${op}${stamp} Copying 503 error page to webroot..." \ "${normal}" >> "$logFile" - cp "${err503File}" "$webroot/" >> "$logFile" 2>&1 + cp "${err503Path}" "$webroot/" >> "$logFile" 2>&1 copyResult="$?" # verify copy was successful if [ "$copyResult" = "1" ]; then