diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2015-11-05 19:37:23 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2015-11-05 19:37:23 +0100 |
commit | 64a929ef5032289d9485f9c4c3f8c038ce2ac528 (patch) | |
tree | 92038a931a19b960894f20e09da0ba27719b39cb /config/haproxy-devel/www | |
parent | 87204854b73e82459c7ae09b8d66a5db09ac9661 (diff) | |
download | pfsense-packages-64a929ef5032289d9485f9c4c3f8c038ce2ac528.tar.gz pfsense-packages-64a929ef5032289d9485f9c4c3f8c038ce2ac528.tar.bz2 pfsense-packages-64a929ef5032289d9485f9c4c3f8c038ce2ac528.zip |
haproxy-devel, append duplicate name to with -copy
Diffstat (limited to 'config/haproxy-devel/www')
-rw-r--r-- | config/haproxy-devel/www/haproxy_listeners_edit.php | 1 | ||||
-rw-r--r-- | config/haproxy-devel/www/haproxy_pool_edit.php | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/config/haproxy-devel/www/haproxy_listeners_edit.php b/config/haproxy-devel/www/haproxy_listeners_edit.php index 9d2b0b05..8e6c1c3d 100644 --- a/config/haproxy-devel/www/haproxy_listeners_edit.php +++ b/config/haproxy-devel/www/haproxy_listeners_edit.php @@ -283,6 +283,7 @@ if (isset($id) && $a_backend[$id]) { if (isset($_GET['dup'])) { unset($id); + $pconfig['name'] .= "-copy"; if ($pconfig['secondary'] != 'yes') $pconfig['primary_frontend'] = $pconfig['name']; } diff --git a/config/haproxy-devel/www/haproxy_pool_edit.php b/config/haproxy-devel/www/haproxy_pool_edit.php index 71da9732..2b4787f3 100644 --- a/config/haproxy-devel/www/haproxy_pool_edit.php +++ b/config/haproxy-devel/www/haproxy_pool_edit.php @@ -323,9 +323,10 @@ if (isset($id) && $a_pools[$id]) { } } -if (isset($_GET['dup'])) +if (isset($_GET['dup'])) { unset($id); - + $pconfig['name'] .= "-copy"; +} $changedesc = "Services: HAProxy: Backend server pool: "; $changecount = 0; |