Updated 503 copy section to use err503Path

This commit is contained in:
Asif Bacchus 2018-10-01 23:59:26 -06:00
parent d0d3cf8da1
commit b3d1b3ea65

View File

@ -263,8 +263,8 @@ else
# webroot exists # webroot exists
echo -e "${op}${stamp} Using webroot: ${lit}${webroot}${normal}" \ echo -e "${op}${stamp} Using webroot: ${lit}${webroot}${normal}" \
>> "$logFile" >> "$logFile"
# Verify 503 file existance # Verify 503 file existance at given path
checkExist ff "$err503File" checkExist ff "$err503Path"
checkResult="$?" checkResult="$?"
if [ "$checkResult" = "1" ]; then if [ "$checkResult" = "1" ]; then
# 503 file could not be found # 503 file could not be found
@ -276,7 +276,7 @@ else
echo -e "${op}${stamp} ${err503File} found.${normal}" >> "$logFile" echo -e "${op}${stamp} ${err503File} found.${normal}" >> "$logFile"
echo -e "${op}${stamp} Copying 503 error page to webroot..." \ echo -e "${op}${stamp} Copying 503 error page to webroot..." \
"${normal}" >> "$logFile" "${normal}" >> "$logFile"
cp "${err503File}" "$webroot/" >> "$logFile" 2>&1 cp "${err503Path}" "$webroot/" >> "$logFile" 2>&1
copyResult="$?" copyResult="$?"
# verify copy was successful # verify copy was successful
if [ "$copyResult" = "1" ]; then if [ "$copyResult" = "1" ]; then