Formatting: updated warn503
This commit is contained in:
parent
a6fcaf6012
commit
b0218ea8a4
13
backup.sh
13
backup.sh
@ -235,21 +235,22 @@ echo -e "${info}${stamp} -- [INFO] mySQL dump file will be stored" \
|
|||||||
# Verify 503 existance
|
# Verify 503 existance
|
||||||
if [ -z "$err503File" ]; then
|
if [ -z "$err503File" ]; then
|
||||||
# no 503 file has been provided
|
# no 503 file has been provided
|
||||||
echo -e "$warn503" >> "$logFile"
|
echo -e "${info}${stamp} -- [INFO] ${warn503} --${normal}" >> "$logFile"
|
||||||
exitWarn+=('5031')
|
exitWarn+=('5031')
|
||||||
else
|
else
|
||||||
checkExist ff "$err503File"
|
checkExist ff "$err503File"
|
||||||
checkResult="$?"
|
checkResult="$?"
|
||||||
if [ "$checkResult" = "1" ]; then
|
if [ "$checkResult" = "1" ]; then
|
||||||
# 503 file specified could not be found
|
# 503 file specified could not be found
|
||||||
echo -e "$warn503" >> "$logFile"
|
echo -e "${info}${stamp} -- [INFO] ${warn503} --${normal}" \
|
||||||
|
>> "$logFile"
|
||||||
exitWarn+=('5032')
|
exitWarn+=('5032')
|
||||||
else
|
else
|
||||||
# 503 file found
|
# 503 file found
|
||||||
# verify webroot exists
|
# verify webroot exists
|
||||||
if [ -z "$webroot" ]; then
|
if [ -z "$webroot" ]; then
|
||||||
# no webroot path provided
|
# no webroot path provided
|
||||||
echo -e "${warn}${stamp} -- [WARNING] $warn503 --${normal}" \
|
echo -e "${info}${stamp} -- [INFO] ${warn503} --${normal}" \
|
||||||
>> "$logFile"
|
>> "$logFile"
|
||||||
exitWarn+=('5033')
|
exitWarn+=('5033')
|
||||||
else
|
else
|
||||||
@ -258,8 +259,8 @@ else
|
|||||||
checkResult="$?"
|
checkResult="$?"
|
||||||
if [ "$checkResult" = "1" ]; then
|
if [ "$checkResult" = "1" ]; then
|
||||||
# webroot directory specified could not be found
|
# webroot directory specified could not be found
|
||||||
echo -e "${warn}${stamp} -- [WARNING] $warn503 --${normal}" \
|
echo -e "${info}${stamp} -- [INFO] ${warn503} --${normal}" \
|
||||||
>> "$logFile"
|
>> "$logFile"
|
||||||
exitWarn+=('5034')
|
exitWarn+=('5034')
|
||||||
else
|
else
|
||||||
# webroot exists and 503 exists, copy 503 to webroot
|
# webroot exists and 503 exists, copy 503 to webroot
|
||||||
@ -268,7 +269,7 @@ else
|
|||||||
# verify copy was successful
|
# verify copy was successful
|
||||||
if [ "$copyResult" = "1" ]; then
|
if [ "$copyResult" = "1" ]; then
|
||||||
# copy was unsuccessful
|
# copy was unsuccessful
|
||||||
echo -e "${warn}${stamp} -- [WARNING] $warn503" \
|
echo -e "${info}${stamp} -- [INFO] ${warn503}" \
|
||||||
"--${normal}" >> "$logFile"
|
"--${normal}" >> "$logFile"
|
||||||
exitWarn+=('5035')
|
exitWarn+=('5035')
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user