Use new zmupdate -s param touse system maintenance use to perform updates

This commit is contained in:
Isaac Connor 2021-04-28 10:05:21 -04:00
parent c50c30c6b5
commit 33ed35c1f6
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ if [ "$1" = "configure" ]; then
echo "Updating permissions for user ${ZM_DB_USER}@localhost"
echo "GRANT LOCK TABLES,ALTER,DROP,SELECT,INSERT,UPDATE,DELETE,CREATE,INDEX,ALTER ROUTINE,CREATE ROUTINE, TRIGGER,EXECUTE,REFERENCES ON ${ZM_DB_NAME}.* TO '${ZM_DB_USER}'@localhost;" | mysql --defaults-file=/etc/mysql/debian.cnf mysql
zmupdate.pl --nointeractive
zmupdate.pl -s --nointeractive
if [ $? -ne 0 ]; then
echo "Error updating db."
exit 1;

View File

@ -31,7 +31,7 @@ create_update_user () {
update_db () {
zmupdate.pl --nointeractive
zmupdate.pl -s --nointeractive
if [ $? -ne 0 ]; then
echo "Error updating db."
exit 1;