Replaced enter NC maint section with function call
This commit is contained in:
parent
d4340201fe
commit
85ace3d5fd
@ -333,17 +333,7 @@ else
|
|||||||
fi
|
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" \
|
ncMaint on
|
||||||
"in maintenance mode...\e[0m" >> $logFile
|
|
||||||
sudo -u ${webUser} php ${ncroot}/occ maintenance:mode --on >> $logFile 2>&1
|
|
||||||
# verify
|
|
||||||
maintResult="$?"
|
|
||||||
|
|
||||||
if [ "$maintResult" = "0" ]; then
|
|
||||||
echo -e "\e[0;36m...done\e[0m" >> $logFile
|
|
||||||
else
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user