Fixed variable type in NC maint section. Tested script.
This commit is contained in:
parent
9cae90f3d9
commit
c7b9ec9bcd
@ -278,11 +278,12 @@ fi
|
||||
|
||||
## Put NextCloud in maintenance mode
|
||||
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
|
||||
# verify
|
||||
maintResult="$?"
|
||||
if [ "$mainResult" = "0" ]; then
|
||||
|
||||
if [ "$maintResult" = "0" ]; then
|
||||
echo -e "\e[0;36m...done\e[0m" >> $logFile
|
||||
else
|
||||
quit 500
|
||||
|
Loading…
Reference in New Issue
Block a user