aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel/haproxy_pools.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/haproxy-devel/haproxy_pools.php')
-rw-r--r--config/haproxy-devel/haproxy_pools.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/config/haproxy-devel/haproxy_pools.php b/config/haproxy-devel/haproxy_pools.php
index cd3899e6..2d0189a5 100644
--- a/config/haproxy-devel/haproxy_pools.php
+++ b/config/haproxy-devel/haproxy_pools.php
@@ -47,13 +47,7 @@ if ($_POST) {
$pconfig = $_POST;
if ($_POST['apply']) {
- $retval = 0;
- config_lock();
- $retval = haproxy_configure();
- config_unlock();
-
- $result = haproxy_check_writtenconfig_error($messages);
- $savemsg = $messages;
+ $result = haproxy_check_and_run($savemsg, true);
if ($result)
unlink_if_exists($d_haproxyconfdirty_path);
}