Skip to content

Commit ed666d9

Browse files
committed
Fixed: FS#883 - Webtraffic bug with 2 server in SVN Version
1 parent 434907e commit ed666d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install/update.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@
100100
if(isset($conf_old["dbmaster_user"])) $conf["mysql"]["master_ispconfig_user"] = $conf_old["dbmaster_user"];
101101
if(isset($conf_old["dbmaster_password"])) $conf["mysql"]["master_ispconfig_password"] = $conf_old["dbmaster_password"];
102102

103+
//* Check if this is a master / slave setup
104+
if($conf["mysql"]["master_host"] != '' && $conf["mysql"]["host"] != $conf["mysql"]["master_host"]) {
105+
$conf['mysql']['master_slave_setup'] = 'y';
106+
}
107+
103108
// Resolve the IP address of the mysql hostname.
104109
if(!$conf['mysql']['ip'] = gethostbyname($conf['mysql']['host'])) die('Unable to resolve hostname'.$conf['mysql']['host']);
105110

0 commit comments

Comments
 (0)