From cd972d8d0532f7e981ab16e9b0b838927ce77365 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Mon, 18 Aug 2008 11:31:22 -0400 Subject: [PATCH] Changed the installer code to use the global $conf array in all installer functions instead of the $conf member variable of the $inst object to fix bug #187. --- install/update.php | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/install/update.php b/install/update.php index 673683a..781f134 100644 --- a/install/update.php +++ b/install/update.php @@ -81,6 +81,9 @@ $conf["mysql"]["ispconfig_user"] = $conf_old["db_user"]; $conf["mysql"]["ispconfig_password"] = $conf_old["db_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']); + $conf['server_id'] = $conf_old["server_id"]; $conf['ispconfig_log_priority'] = $conf_old["log_priority"]; @@ -220,7 +223,7 @@ //** Customise the port ISPConfig runs on -$inst->conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', '8080'); +$conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', '8080'); $inst->install_ispconfig(); -- Gitblit v1.9.1