tbrehm
2008-07-10 35bcf2085ed5e06459f0b27409be8aa8ac215767
Get system hostname from command "hostname -f" during update.
1 files modified
6 ■■■■■ changed files
install/update.php 6 ●●●●● patch | view | raw | blame | history
install/update.php
@@ -69,6 +69,12 @@
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"];