aboutsummaryrefslogtreecommitdiffstats
path: root/config/zabbix2
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-11-16 21:12:38 +0100
committerdoktornotor <notordoktor@gmail.com>2015-11-16 21:12:38 +0100
commite742406c1d458915f5dfe5718dbc6c043e1350b2 (patch)
tree6e6320391f5024a3e95cbb98ae96a9e64b7f4e23 /config/zabbix2
parent1e5322275d07cec976669563617528eaf2758fa1 (diff)
downloadpfsense-packages-e742406c1d458915f5dfe5718dbc6c043e1350b2.tar.gz
pfsense-packages-e742406c1d458915f5dfe5718dbc6c043e1350b2.tar.bz2
pfsense-packages-e742406c1d458915f5dfe5718dbc6c043e1350b2.zip
Do not delete /var/db/zabbix2 if zabbix2-agent package is still installed
Diffstat (limited to 'config/zabbix2')
-rw-r--r--config/zabbix2/zabbix2-proxy.inc7
1 files changed, 3 insertions, 4 deletions
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/");
+ }
}
}