Ejemplo n.º 1
0
 * 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->grant_master_database_rights(true);
}
/*
 *  dump the new Database and reconfigure the server.ini
 */
updateDbAndIni();
/*
 * Reconfigure all Services
 */
if ($conf['services']['mail'] == true) {
    //** Configure postfix
    swriteln('Configuring Postfix');
    $inst->configure_postfix('dont-create-certs');
    //** Configure mailman
    swriteln('Configuring Mailman');
    $inst->configure_mailman('update');