Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
35bcf208
Commit
35bcf208
authored
Jul 10, 2008
by
tbrehm
Browse files
Get system hostname from command "hostname -f" during update.
parent
f53d3cdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/update.php
View file @
35bcf208
...
...
@@ -69,6 +69,12 @@ unset($conf);
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"
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment