Commit 0fed3bec authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#2323 - Replace fixed localhost setting in install/tpl/mysql_clientdb.conf.master

parent 9ec545af
...@@ -1072,6 +1072,7 @@ class installer_dist extends installer_base { ...@@ -1072,6 +1072,7 @@ class installer_dist extends installer_base {
} }
$content = rf("tpl/mysql_clientdb.conf.master"); $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('{username}',$conf['mysql']['admin_user'],$content);
$content = str_replace('{password}',$conf['mysql']['admin_password'], $content); $content = str_replace('{password}',$conf['mysql']['admin_password'], $content);
wf("$install_dir/server/lib/mysql_clientdb.conf",$content); wf("$install_dir/server/lib/mysql_clientdb.conf",$content);
......
...@@ -1115,6 +1115,7 @@ class installer_dist extends installer_base { ...@@ -1115,6 +1115,7 @@ class installer_dist extends installer_base {
} }
$content = rf("tpl/mysql_clientdb.conf.master"); $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('{username}',$conf['mysql']['admin_user'],$content);
$content = str_replace('{password}',$conf['mysql']['admin_password'], $content); $content = str_replace('{password}',$conf['mysql']['admin_password'], $content);
wf("$install_dir/server/lib/mysql_clientdb.conf",$content); wf("$install_dir/server/lib/mysql_clientdb.conf",$content);
......
...@@ -2008,6 +2008,7 @@ class installer_base { ...@@ -2008,6 +2008,7 @@ class installer_base {
} }
$content = rf('tpl/mysql_clientdb.conf.master'); $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('{username}',$conf['mysql']['admin_user'],$content);
$content = str_replace('{password}',$conf['mysql']['admin_password'], $content); $content = str_replace('{password}',$conf['mysql']['admin_password'], $content);
wf($install_dir.'/server/lib/mysql_clientdb.conf',$content); wf($install_dir.'/server/lib/mysql_clientdb.conf',$content);
......
<?php <?php
$clientdb_host = 'localhost'; $clientdb_host = '{hostname}';
$clientdb_user = '{username}'; $clientdb_user = '{username}';
$clientdb_password = '{password}'; $clientdb_password = '{password}';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment