Replaced enter NC maint section with function call

This commit is contained in:
Asif Bacchus 2018-09-07 03:40:45 -06:00
parent d4340201fe
commit 85ace3d5fd

View File

@ -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