summaryrefslogtreecommitdiffstats
path: root/debian/monitoring-plugins-basic.postrm.in
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/monitoring-plugins-basic.postrm.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/monitoring-plugins-basic.postrm.in b/debian/monitoring-plugins-basic.postrm.in
new file mode 100644
index 0000000..b65cc9d
--- /dev/null
+++ b/debian/monitoring-plugins-basic.postrm.in
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+BASIC_PLUGINS="@BASIC_PLUGINS@"
+
+if [ "$1" = "purge" ]; then
+ if which ucf >/dev/null 2>&1; then
+ have_ucf="yes"
+ fi
+ for f in $BASIC_PLUGINS; do
+ rm -f /etc/nagios-plugins/config/${f}.cfg
+ if [ "$have_ucf" = "yes" ]; then
+ ucf --purge /etc/nagios-plugins/config/${f}.cfg
+ fi
+ done
+fi
+
+#DEBHELPER#