From 1bf4621235fbd761c4a0642c866eaaa7dc6007ae Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 07 Jun 2012 08:58:21 -0400
Subject: [PATCH] Implemented: FS#2131 - skip network reconfigure requests on mirror servers that are for a different server_id
---
server/plugins-available/network_settings_plugin.inc.php | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/server/plugins-available/network_settings_plugin.inc.php b/server/plugins-available/network_settings_plugin.inc.php
index 16b553b..2bea300 100644
--- a/server/plugins-available/network_settings_plugin.inc.php
+++ b/server/plugins-available/network_settings_plugin.inc.php
@@ -79,8 +79,9 @@
$app->uses('getconf');
$server_config = $app->getconf->get_server_config($conf['server_id'], 'server');
- // Configure the debian network card settings
- if($server_config['auto_network_configuration'] == 'y') {
+ //* Configure the debian network card settings.
+ //* Dont configure
+ if($server_config['auto_network_configuration'] == 'y' && $data['mirrored'] == false) {
if (is_file('/etc/debian_version'))
{
@@ -238,7 +239,7 @@
}
} else {
- $app->log('Network configuration disabled in server settings.',LOGLEVEL_DEBUG);
+ $app->log('Network configuration disabled in server settings or server is a mirror server.',LOGLEVEL_DEBUG);
}
}
--
Gitblit v1.9.1