tbrehm
2010-10-06 3ca9a66fcb42bb8cc078cd4c7ceef694fe9db821
install/update.php
@@ -66,7 +66,7 @@
//** Check for ISPConfig 2.x versions
if(is_dir('/root/ispconfig') || is_dir('/home/admispconfig')) {
   die('This software can not be installed on a server wich runs ISPConfig 2.x.');
   die('This software cannot be installed on a server wich runs ISPConfig 2.x.');
}
//** Get distribution identifier
@@ -76,9 +76,9 @@
$conf_old = $conf;
unset($conf);
if($dist['id'] == '') die('Linux Distribution or Version not recognized.');
if($dist['id'] == '') die('Linux distribution or version not recognized.');
//** Include the distribution specific installer class library and configuration
//** Include the distribution-specific installer class library and configuration
if(is_file('dist/lib/'.$dist['baseid'].'.lib.php')) include_once('dist/lib/'.$dist['baseid'].'.lib.php');
include_once('dist/lib/'.$dist['id'].'.lib.php');
include_once('dist/conf/'.$dist['id'].'.conf.php');
@@ -87,7 +87,6 @@
exec('hostname -f', $tmp_out);
$conf['hostname'] = $tmp_out[0];
unset($tmp_out);
//** Set the mysql login information
$conf["mysql"]["host"] = $conf_old["db_host"];
@@ -199,14 +198,14 @@
 * (if this is done at client side, only this client is updated.
 * If this is done at server side, all clients are updated.
 */
//if($conf['mysql']['master_slave_setup'] == 'y') {
if($conf_old['dbmaster_user'] != '' or $conf_old['dbmaster_host'] != '') {
   //** Update master database rights
   $reconfigure_master_database_rights_answer = $inst->simple_query('Reconfigure Permissions in master database?', array('yes','no'),'no');
   if($reconfigure_master_database_rights_answer == 'yes') {
      $inst->grant_master_database_rights();
   }
//}
}
//** Shall the services be reconfigured during update
$reconfigure_services_answer = $inst->simple_query('Reconfigure Services?', array('yes','no'),'yes');
@@ -286,13 +285,13 @@
      swriteln('Configuring Apps vhost');
      $inst->configure_apps_vhost();
   }
   //* Configure DBServer
   swriteln('Configuring Database');
   $inst->configure_dbserver();
   //if(@is_dir('/etc/Bastille')) {
   //* Configure Firewall
   swriteln('Configuring Firewall');
@@ -308,6 +307,11 @@
$ispconfig_port_number = get_ispconfig_port_number();
$conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', $ispconfig_port_number);
// $ispconfig_ssl_default = (is_ispconfig_ssl_enabled() == true)?'y':'n';
if(strtolower($inst->simple_query('Create new ISPConfig SSL certificate',array('y','n'),'n')) == 'y') {
   $inst->make_ispconfig_ssl_cert();
}
$inst->install_ispconfig();
//** Configure Crontab