Added ncMaint call in cleanup function

This commit is contained in:
Asif Bacchus 2018-10-14 10:22:35 -06:00
parent c9a5c8a71f
commit fcef47b712

View File

@ -114,6 +114,16 @@ function cleanup {
echo -e "${op}${stamp} 503 error page never copied to webroot," \
"nothing to cleanup" >> "$logFile"
fi
## Exit NextCloud maintenance mode regardless of current status
ncMaint off
# check if successful
if [ "$maintResult" = "0" ]; then
echo -e "${info}${stamp} -- [INFO] NextCloud now in regular" \
"operating mode --${normal}" >> "$logFile"
else
quit 100
fi
}
### End of Functions ###