From e742406c1d458915f5dfe5718dbc6c043e1350b2 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Mon, 16 Nov 2015 21:12:38 +0100 Subject: Do not delete /var/db/zabbix2 if zabbix2-agent package is still installed --- config/zabbix2/zabbix2-proxy.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'config/zabbix2') diff --git a/config/zabbix2/zabbix2-proxy.inc b/config/zabbix2/zabbix2-proxy.inc index 6341c92e..aa21b817 100644 --- a/config/zabbix2/zabbix2-proxy.inc +++ b/config/zabbix2/zabbix2-proxy.inc @@ -73,10 +73,9 @@ function php_deinstall_zabbix2_proxy() { if (is_dir("/var/run/zabbix2")) { exec("/bin/rm -r /var/run/zabbix2/"); } - } - - if (is_dir("/var/db/zabbix2")) { - exec("/bin/rm -r /var/db/zabbix2/"); + if (is_dir("/var/db/zabbix2")) { + exec("/bin/rm -r /var/db/zabbix2/"); + } } } -- cgit v1.2.3