File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,14 @@ function onBeforeUpdate() {
374374 }
375375 if (!in_array ($ server_config ['ip_address ' ], $ remote_ips )) { $ remote_ips [] = $ server_config ['ip_address ' ]; }
376376
377+ // If server has a slave ... add it.
378+ $ mirrors = $ app ->db ->queryAllRecords ("SELECT server_id FROM server WHERE mirror_server_id = ? " , $ tmp ['server_id ' ]);
379+ foreach ($ mirrors as $ mirror ) {
380+ // we need remote access rights for this server, so get it's ip address
381+ $ mirror_server_config = $ app ->getconf ->get_server_config ($ mirror ['server_id ' ], 'server ' );
382+ if (!in_array ($ server_config ['ip_address ' ], $ remote_ips )) { $ remote_ips [] = $ mirror_server_config ['ip_address ' ]; }
383+ }
384+
377385 if ($ server_config ['ip_address ' ]!='' ) {
378386 if ($ this ->dataRecord ['remote_access ' ] != 'y ' ){
379387 $ this ->dataRecord ['remote_ips ' ] = implode (', ' , $ remote_ips );
You can’t perform that action at this time.
0 commit comments