summaryrefslogtreecommitdiffstats
path: root/debian/winbind.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:31 +0000
commit236cb75e4430569627585a5818d9ce9bc85640f8 (patch)
treef84b5c0335eb76eb9df1e6c2c0004d7d9667c6e4 /debian/winbind.postrm
parentAdding upstream version 2:4.17.12+dfsg. (diff)
downloadsamba-236cb75e4430569627585a5818d9ce9bc85640f8.tar.xz
samba-236cb75e4430569627585a5818d9ce9bc85640f8.zip
Adding debian version 2:4.17.12+dfsg-0+deb12u1.debian/2%4.17.12+dfsg-0+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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#