Skip to content

Commit 0fed3be

Browse files
committed
Fixed: FS#2323 - Replace fixed localhost setting in install/tpl/mysql_clientdb.conf.master
1 parent 9ec545a commit 0fed3be

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

install/dist/lib/fedora.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,7 @@ public function configure_dbserver()
10721072
}
10731073

10741074
$content = rf("tpl/mysql_clientdb.conf.master");
1075+
$content = str_replace('{hostname}',$conf['mysql']['host'],$content);
10751076
$content = str_replace('{username}',$conf['mysql']['admin_user'],$content);
10761077
$content = str_replace('{password}',$conf['mysql']['admin_password'], $content);
10771078
wf("$install_dir/server/lib/mysql_clientdb.conf",$content);

install/dist/lib/opensuse.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,7 @@ public function configure_dbserver()
11151115
}
11161116

11171117
$content = rf("tpl/mysql_clientdb.conf.master");
1118+
$content = str_replace('{hostname}',$conf['mysql']['host'],$content);
11181119
$content = str_replace('{username}',$conf['mysql']['admin_user'],$content);
11191120
$content = str_replace('{password}',$conf['mysql']['admin_password'], $content);
11201121
wf("$install_dir/server/lib/mysql_clientdb.conf",$content);

install/lib/installer_base.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,6 +2008,7 @@ public function configure_dbserver() {
20082008
}
20092009

20102010
$content = rf('tpl/mysql_clientdb.conf.master');
2011+
$content = str_replace('{hostname}',$conf['mysql']['host'],$content);
20112012
$content = str_replace('{username}',$conf['mysql']['admin_user'],$content);
20122013
$content = str_replace('{password}',$conf['mysql']['admin_password'], $content);
20132014
wf($install_dir.'/server/lib/mysql_clientdb.conf',$content);

install/tpl/mysql_clientdb.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
$clientdb_host = 'localhost';
3+
$clientdb_host = '{hostname}';
44
$clientdb_user = '{username}';
55
$clientdb_password = '{password}';
66

0 commit comments

Comments
 (0)