vogelor
2010-05-10 955ace7ba56bb9cd4a325f2713420a4a0bc6c3b5
fixed another problem in autoupdater

1 files modified
14 ■■■■■ changed files
install/autoupdate.php 14 ●●●●● patch | view | raw | blame | history
install/autoupdate.php
@@ -153,10 +153,22 @@
$inst->db = new db();
/*
 * The next line is a bit tricky!
 * At the automated update we have no connection to the master-db (we don't need it, because
 * there are only TWO points, where this is needed)
 * 1) update the rights --> the autoupdater sets the rights of all clients when the server is
 *    autoupdated)
 * 2) update the server-settings (is web installed, is mail installed) --> the autoupdates
 *    doesn't change any of this settings, so there ist no need to update this.
 * This means, the autoupdater did not need any connection to the master-db (only to the local bd
 * of the master-server). To avoid any problems, we set the master-db to the local one.
 */
$inst->dbmaster = $inst->db;
/*
 * If it is NOT a master-slave - Setup then we are at the Master-DB. So set all rights
*/
if($conf['mysql']['master_slave_setup'] != 'y') {
    $inst->dbmaster = $inst->db;
    $inst->grant_master_database_rights();
}