| | |
| | | $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']); |
| | |
| | | |
| | | $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 |