Switched NC failure to exit maint mode from error to warning.

This commit is contained in:
Asif Bacchus 2018-09-06 04:02:21 -06:00
parent 934abe56dd
commit b9a3948372
1 changed files with 6 additions and 3 deletions

View File

@ -365,10 +365,13 @@ fi
## Put NextCloud back into operational mode
echo -e "\e[1;36m[`date +%Y-%m-%d` `date +%H:%M:%S`] Taking NextCloud" \
"out of maintenance mode..." >> $logFile
"out of maintenance mode...\e[0m" >> $logFile
sudo -u ${webUser} php ${ncroot}/occ maintenance:mode --off >> $logFile 2>&1
# verify
if [ "$?" = "0" ]; then
maintResult="$?"
# verify but continue if problems since we need to cleanup before exiting
if [ "$maintResult" = "0" ]; then
echo -e "\e[0;36m...done\e[0m" >> $logFile
else
echo -e "\e[1;31m--WARNING-- There was a problem taking NextCloud" \