summaryrefslogtreecommitdiffstats
path: root/debian/nagios-nrpe-plugin.postrm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/nagios-nrpe-plugin.postrm9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/nagios-nrpe-plugin.postrm b/debian/nagios-nrpe-plugin.postrm
new file mode 100644
index 0000000..a77d21a
--- /dev/null
+++ b/debian/nagios-nrpe-plugin.postrm
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = purge ]; then
+ test -d /var/lib/nagios && rmdir /var/lib/nagios || true #ignore non-failure errors
+fi
+
+#DEBHELPER#
+