Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
0fed3bec
Commit
0fed3bec
authored
Aug 15, 2012
by
tbrehm
Browse files
Fixed: FS#2323 - Replace fixed localhost setting in install/tpl/mysql_clientdb.conf.master
parent
9ec545af
Changes
4
Hide whitespace changes
Inline
Side-by-side
install/dist/lib/fedora.lib.php
View file @
0fed3bec
...
...
@@ -1072,6 +1072,7 @@ class installer_dist extends installer_base {
}
$content
=
rf
(
"tpl/mysql_clientdb.conf.master"
);
$content
=
str_replace
(
'{hostname}'
,
$conf
[
'mysql'
][
'host'
],
$content
);
$content
=
str_replace
(
'{username}'
,
$conf
[
'mysql'
][
'admin_user'
],
$content
);
$content
=
str_replace
(
'{password}'
,
$conf
[
'mysql'
][
'admin_password'
],
$content
);
wf
(
"
$install_dir
/server/lib/mysql_clientdb.conf"
,
$content
);
...
...
install/dist/lib/opensuse.lib.php
View file @
0fed3bec
...
...
@@ -1115,6 +1115,7 @@ class installer_dist extends installer_base {
}
$content
=
rf
(
"tpl/mysql_clientdb.conf.master"
);
$content
=
str_replace
(
'{hostname}'
,
$conf
[
'mysql'
][
'host'
],
$content
);
$content
=
str_replace
(
'{username}'
,
$conf
[
'mysql'
][
'admin_user'
],
$content
);
$content
=
str_replace
(
'{password}'
,
$conf
[
'mysql'
][
'admin_password'
],
$content
);
wf
(
"
$install_dir
/server/lib/mysql_clientdb.conf"
,
$content
);
...
...
install/lib/installer_base.lib.php
View file @
0fed3bec
...
...
@@ -2008,6 +2008,7 @@ class installer_base {
}
$content
=
rf
(
'tpl/mysql_clientdb.conf.master'
);
$content
=
str_replace
(
'{hostname}'
,
$conf
[
'mysql'
][
'host'
],
$content
);
$content
=
str_replace
(
'{username}'
,
$conf
[
'mysql'
][
'admin_user'
],
$content
);
$content
=
str_replace
(
'{password}'
,
$conf
[
'mysql'
][
'admin_password'
],
$content
);
wf
(
$install_dir
.
'/server/lib/mysql_clientdb.conf'
,
$content
);
...
...
install/tpl/mysql_clientdb.conf.master
View file @
0fed3bec
<?php
$clientdb_host
=
'
localhost
'
;
$clientdb_host
=
'
{hostname}
'
;
$clientdb_user
=
'{username}'
;
$clientdb_password
=
'{password}'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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