default 503 checks if necessary

This commit is contained in:
Asif Bacchus 2019-05-24 21:19:23 -06:00
parent 4eb9abccf8
commit 42fd9349b7

View File

@ -257,6 +257,16 @@ if ! command -v borg > /dev/null; then
printf "\n${err}ERROR: BORG is not installed on this system!${norm}\n\n" printf "\n${err}ERROR: BORG is not installed on this system!${norm}\n\n"
exit 3 exit 3
fi fi
# 503 functionality
if [ $use503 -eq 1 ]; then
if [ ! -f "$err503Path" ]; then
badParam dne "(--503-path default)" "$err503Path"
elif [ ! -d "$webroot" ]; then
badParam dne "(--webroot default)" "$webroot"
fi
printf "${cyan}[%s] -- [INFO] Using 503 functionality --${norm}\n" \
"$(stamp)" >> "$logFile"
fi
### start logging ### start logging