summaryrefslogtreecommitdiff
path: root/debian/nslcd.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/nslcd.postrm')
-rw-r--r--debian/nslcd.postrm16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/nslcd.postrm b/debian/nslcd.postrm
new file mode 100644
index 0000000..66fe1bb
--- /dev/null
+++ b/debian/nslcd.postrm
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+CONFFILE="/etc/nss-ldapd.conf"
+
+# remove /var/run/nslcd directory
+rm -rf /var/run/nslcd
+
+# remove our configuration file (not a conffile) on purge manually
+if [ "$1" = "purge" ]
+then
+ rm -f "$CONFFILE"
+fi
+
+#DEBHELPER#