tbrehm
2008-12-09 1e74ea5962c3f62829e5012e242fe28a53ae17aa
install/update.php
@@ -89,10 +89,10 @@
$conf["mysql"]["ispconfig_user"] = $conf_old["db_user"];
$conf["mysql"]["ispconfig_password"] = $conf_old["db_password"];
$conf["mysql"]["master_host"] = $conf_old["dbmaster_host"];
$conf["mysql"]["master_database"] = $conf_old["dbmaster_database"];
$conf["mysql"]["master_ispconfig_user"] = $conf_old["dbmaster_user"];
$conf["mysql"]["master_ispconfig_password"] = $conf_old["dbmaster_password"];
if(isset($conf_old["dbmaster_host"])) $conf["mysql"]["master_host"] = $conf_old["dbmaster_host"];
if(isset($conf_old["dbmaster_database"])) $conf["mysql"]["master_database"] = $conf_old["dbmaster_database"];
if(isset($conf_old["dbmaster_user"])) $conf["mysql"]["master_ispconfig_user"] = $conf_old["dbmaster_user"];
if(isset($conf_old["dbmaster_password"])) $conf["mysql"]["master_ispconfig_password"] = $conf_old["dbmaster_password"];
// Resolve the IP address of the mysql hostname.
if(!$conf['mysql']['ip'] = gethostbyname($conf['mysql']['host'])) die('Unable to resolve hostname'.$conf['mysql']['host']);
@@ -102,6 +102,9 @@
$inst = new installer();
//** Detect the installed applications
$inst->find_installed_apps();
echo "This application will update ISPConfig 3 on your server.\n";
//** Initialize the MySQL server connection