summaryrefslogtreecommitdiffstats
path: root/debian/winbind.postrm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/winbind.postrm12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/winbind.postrm b/debian/winbind.postrm
new file mode 100644
index 0000000..31001ea
--- /dev/null
+++ b/debian/winbind.postrm
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+if [ "$1" = purge ]; then
+ winbindd_privileged_socket_directory='/var/lib/samba/winbindd_privileged'
+ rm -rf /var/cache/samba/netsamlogon_cache.tdb /var/cache/samba/winbindd_cache.tdb
+ rm -rf "$winbindd_privileged_socket_directory"
+ rm -rf /var/log/samba/log.winbind* /var/log/samba/log.wb*
+ rm -rf /run/samba/winbindd.pid
+fi
+
+#DEBHELPER#