log cleanup action successes
This commit is contained in:
parent
2d8c41412f
commit
30e5e4fa3f
@ -44,7 +44,10 @@ cleanup () {
|
|||||||
printf " Web interface will not function until this file is " \
|
printf " Web interface will not function until this file is " \
|
||||||
>> "$logFile"
|
>> "$logFile"
|
||||||
printf "removed --${norm}\n" >> "$logFile"
|
printf "removed --${norm}\n" >> "$logFile"
|
||||||
fi
|
else
|
||||||
|
prinf "${cyan}[%s] -- [INFO] 503 error page removed --${norm}\n" \
|
||||||
|
"$(stamp)" >> "$logFile"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$sqlCopied" -eq 1 ]; then
|
if [ "$sqlCopied" -eq 1 ]; then
|
||||||
if ! rm -rf "$sqlDumpDir" 2>>"$logFile"; then
|
if ! rm -rf "$sqlDumpDir" 2>>"$logFile"; then
|
||||||
@ -52,6 +55,10 @@ cleanup () {
|
|||||||
"$(stamp)" >> "$logFile"
|
"$(stamp)" >> "$logFile"
|
||||||
printf "SQL dump directory at %s. " "$sqlDumpDir" >> "$logFile"
|
printf "SQL dump directory at %s. " "$sqlDumpDir" >> "$logFile"
|
||||||
printf "Remove manually to free up space.${norm}\n" >> "$logFile"
|
printf "Remove manually to free up space.${norm}\n" >> "$logFile"
|
||||||
|
else
|
||||||
|
prinf "${cyan}[%s] -- [INFO] Temporary SQL dump directory " \
|
||||||
|
"$(stamp)" >> "$logFile"
|
||||||
|
printf "removed --${norm}\n" >> "$logFile"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$offlineBackup" -eq 1 ]; then
|
if [ "$offlineBackup" -eq 1 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user