Switched NC failure to exit maint mode from error to warning.
This commit is contained in:
parent
934abe56dd
commit
b9a3948372
@ -365,10 +365,13 @@ fi
|
|||||||
|
|
||||||
## Put NextCloud back into operational mode
|
## Put NextCloud back into operational mode
|
||||||
echo -e "\e[1;36m[`date +%Y-%m-%d` `date +%H:%M:%S`] Taking NextCloud" \
|
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
|
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
|
echo -e "\e[0;36m...done\e[0m" >> $logFile
|
||||||
else
|
else
|
||||||
echo -e "\e[1;31m--WARNING-- There was a problem taking NextCloud" \
|
echo -e "\e[1;31m--WARNING-- There was a problem taking NextCloud" \
|
||||||
|
Loading…
Reference in New Issue
Block a user