Added error handling to NC maint call section

This commit is contained in:
Asif Bacchus 2018-09-07 04:01:54 -06:00
parent 2a950b28c6
commit 7d3a59222e

View File

@ -378,6 +378,13 @@ fi
## Put NextCloud in maintenance mode ## Put NextCloud in maintenance mode
ncMaint on ncMaint on
# check if it was successful
if [ "$maintResult" = "0" ]; then
echo -e "\e[0;36m...done\e[0m" >> $logFile
else
cleanUp 503
quit 500
fi
## Read sqlDetails file and extract necessary information ## Read sqlDetails file and extract necessary information
mapfile -t sqlParams < $sqlDetails mapfile -t sqlParams < $sqlDetails