Skip to content

Commit 955ace7

Browse files
author
vogelor
committed
fixed another problem in autoupdater
1 parent 165056c commit 955ace7

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

install/autoupdate.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,23 @@
152152
//* initialize the database
153153
$inst->db = new db();
154154

155+
/*
156+
* The next line is a bit tricky!
157+
* At the automated update we have no connection to the master-db (we don't need it, because
158+
* there are only TWO points, where this is needed)
159+
* 1) update the rights --> the autoupdater sets the rights of all clients when the server is
160+
* autoupdated)
161+
* 2) update the server-settings (is web installed, is mail installed) --> the autoupdates
162+
* doesn't change any of this settings, so there ist no need to update this.
163+
* This means, the autoupdater did not need any connection to the master-db (only to the local bd
164+
* of the master-server). To avoid any problems, we set the master-db to the local one.
165+
*/
166+
$inst->dbmaster = $inst->db;
167+
155168
/*
156169
* If it is NOT a master-slave - Setup then we are at the Master-DB. So set all rights
157170
*/
158171
if($conf['mysql']['master_slave_setup'] != 'y') {
159-
$inst->dbmaster = $inst->db;
160172
$inst->grant_master_database_rights();
161173
}
162174

0 commit comments

Comments
 (0)