summaryrefslogtreecommitdiffstats
path: root/debian/nagios-nrpe-plugin.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 11:05:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 11:05:43 +0000
commit134ec653ca1852cab19cf8731e9d65df6dcceabf (patch)
tree0af4a1ec9744a676567bba4b4b929483a705664a /debian/nagios-nrpe-plugin.postrm
parentAdding upstream version 4.0.3. (diff)
downloadnagios-nrpe-debian/4.0.3-1.tar.xz
nagios-nrpe-debian/4.0.3-1.zip
Adding debian version 4.0.3-1.debian/4.0.3-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#
+