Use new zmupdate -s param touse system maintenance use to perform updates
This commit is contained in:
parent
c50c30c6b5
commit
33ed35c1f6
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue