File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 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*/
158171if ($ conf ['mysql ' ]['master_slave_setup ' ] != 'y ' ) {
159- $ inst ->dbmaster = $ inst ->db ;
160172 $ inst ->grant_master_database_rights ();
161173}
162174
You can’t perform that action at this time.
0 commit comments