Fixed variable type in NC maint section. Tested script.

This commit is contained in:
Asif Bacchus 2018-09-06 03:20:09 -06:00
parent 9cae90f3d9
commit c7b9ec9bcd

View File

@ -278,11 +278,12 @@ fi
## Put NextCloud in maintenance mode ## Put NextCloud in maintenance mode
echo -e "\e[1;36m[`date +%Y-%m-%d` `date +%H:%M:%S`] Putting NextCloud" \ echo -e "\e[1;36m[`date +%Y-%m-%d` `date +%H:%M:%S`] Putting NextCloud" \
"in maintenance mode..." >> $logFile "in maintenance mode...\e[0m" >> $logFile
sudo -u ${webUser} php ${ncroot}/occ maintenance:mode --on >> $logFile 2>&1 sudo -u ${webUser} php ${ncroot}/occ maintenance:mode --on >> $logFile 2>&1
# verify # verify
maintResult="$?" maintResult="$?"
if [ "$mainResult" = "0" ]; then
if [ "$maintResult" = "0" ]; then
echo -e "\e[0;36m...done\e[0m" >> $logFile echo -e "\e[0;36m...done\e[0m" >> $logFile
else else
quit 500 quit 500