summaryrefslogtreecommitdiffstats
path: root/debian/nagios-nrpe-plugin.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:21:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:21:12 +0000
commit393853db31e146165afcabf94d20d653f32001b1 (patch)
treee0b0ae14e8dcafadef5f0b6e4284f8e6e1600677 /debian/nagios-nrpe-plugin.postrm
parentAdding upstream version 4.1.0. (diff)
downloadnagios-nrpe-393853db31e146165afcabf94d20d653f32001b1.tar.xz
nagios-nrpe-393853db31e146165afcabf94d20d653f32001b1.zip
Adding debian version 4.1.0-1.debian/4.1.0-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/nagios-nrpe-plugin.postrm')
-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#
+