| | |
| | | include_once('dist/lib/'.$distname.'.lib.php'); |
| | | include_once('dist/conf/'.$distname.'.conf.php'); |
| | | |
| | | //** Get hostname |
| | | 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"]; |
| | | $conf["mysql"]["database"] = $conf_old["db_database"]; |
| | |
| | | $conf["mysql"]["ispconfig_password"] = $conf_old["db_password"]; |
| | | |
| | | $conf['server_id'] = $conf_old["server_id"]; |
| | | $conf['ispconfig_log_priority'] = $conf_old["log_priority"]; |
| | | |
| | | $inst = new installer(); |
| | | |
| | |
| | | swriteln('Configuring DBServer'); |
| | | $inst->configure_dbserver(); |
| | | |
| | | if(@is_dir('/etc/Bastille')) { |
| | | //if(@is_dir('/etc/Bastille')) { |
| | | //* Configure Firewall |
| | | swriteln('Configuring Firewall'); |
| | | $inst->configure_firewall(); |
| | | } |
| | | //} |
| | | } |
| | | |
| | | //** Configure ISPConfig |