Added expanded 503 error warning to normal and verbose logs
This commit is contained in:
parent
b170e44525
commit
0349e1e0c9
@ -191,6 +191,7 @@ if [ -z "$location503" ]; then
|
|||||||
# no 503 file has been provided
|
# no 503 file has been provided
|
||||||
echo -e "${bold}${yellow}${stamp} -- [WARNING] ${warningExplain[5031]}" \
|
echo -e "${bold}${yellow}${stamp} -- [WARNING] ${warningExplain[5031]}" \
|
||||||
"--${normal}" >> "$logFile"
|
"--${normal}" >> "$logFile"
|
||||||
|
echo -e "$warn503" | tee -a "$logFileNormal" "$logFileVerbose" > /dev/null
|
||||||
exitWarn+=('5031')
|
exitWarn+=('5031')
|
||||||
else
|
else
|
||||||
checkExist ff "$location503"
|
checkExist ff "$location503"
|
||||||
@ -199,6 +200,8 @@ else
|
|||||||
# 503 file specified could not be found
|
# 503 file specified could not be found
|
||||||
echo -e "${bold}${yellow}${stamp} -- [WARNING]" \
|
echo -e "${bold}${yellow}${stamp} -- [WARNING]" \
|
||||||
"${warningExplain[5032]} --${normal}" >> "$logFile"
|
"${warningExplain[5032]} --${normal}" >> "$logFile"
|
||||||
|
echo -e "$warn503" | tee -a "$logFileNormal" "$logFileVerbose" \
|
||||||
|
> /dev/null
|
||||||
exitWarn+=('5032')
|
exitWarn+=('5032')
|
||||||
else
|
else
|
||||||
# 503 file found
|
# 503 file found
|
||||||
@ -210,6 +213,8 @@ else
|
|||||||
# no webroot path provided
|
# no webroot path provided
|
||||||
echo -e "${bold}${yellow}${stamp} -- [WARNING]" \
|
echo -e "${bold}${yellow}${stamp} -- [WARNING]" \
|
||||||
"${warningExplain[5033]} --${normal}" >> "$logFile"
|
"${warningExplain[5033]} --${normal}" >> "$logFile"
|
||||||
|
echo -e "$warn503" | tee -a "$logFileNormal" "$logFileVerbose" \
|
||||||
|
> /dev/null
|
||||||
exitWarn+=('5033')
|
exitWarn+=('5033')
|
||||||
else
|
else
|
||||||
# verify provided webroot path exists
|
# verify provided webroot path exists
|
||||||
@ -219,6 +224,8 @@ else
|
|||||||
# webroot directory specified could not be found
|
# webroot directory specified could not be found
|
||||||
echo -e "${bold}${yellow}${stamp} -- [WARNING]" \
|
echo -e "${bold}${yellow}${stamp} -- [WARNING]" \
|
||||||
"${warningExplain[5034]} --${normal}" >> "$logFile"
|
"${warningExplain[5034]} --${normal}" >> "$logFile"
|
||||||
|
echo -e "$warn503" | tee -a "$logFileNormal" "$logFileVerbose" \
|
||||||
|
> /dev/null
|
||||||
exitWarn+=('5034')
|
exitWarn+=('5034')
|
||||||
else
|
else
|
||||||
# webroot exists and 503 exists, copy 503 to webroot
|
# webroot exists and 503 exists, copy 503 to webroot
|
||||||
@ -230,6 +237,8 @@ else
|
|||||||
if [ "$copyResult" = "1" ]; then
|
if [ "$copyResult" = "1" ]; then
|
||||||
echo -e "${bold}${yellow}${stamp} -- [WARNING]" \
|
echo -e "${bold}${yellow}${stamp} -- [WARNING]" \
|
||||||
"${warningExplain[5035]} --${normal}" >> "$logFile"
|
"${warningExplain[5035]} --${normal}" >> "$logFile"
|
||||||
|
echo -e "$warn503" | tee -a "$logFileNormal" \
|
||||||
|
"$logFileVerbose" > /dev/null
|
||||||
exitWarn+=('5035')
|
exitWarn+=('5035')
|
||||||
else
|
else
|
||||||
# copy was successful
|
# copy was successful
|
||||||
|
Loading…
Reference in New Issue
Block a user