Skip to content

Commit 35bcf20

Browse files
committed
Get system hostname from command "hostname -f" during update.
1 parent f53d3cd commit 35bcf20

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install/update.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@
6969
include_once('dist/lib/'.$distname.'.lib.php');
7070
include_once('dist/conf/'.$distname.'.conf.php');
7171

72+
//** Get hostname
73+
exec('hostname -f', $tmp_out);
74+
$conf['hostname'] = $tmp_out[0];
75+
unset($tmp_out);
76+
77+
7278
//** Set the mysql login information
7379
$conf["mysql"]["host"] = $conf_old["db_host"];
7480
$conf["mysql"]["database"] = $conf_old["db_database"];

0 commit comments

Comments
 (0)