summaryrefslogtreecommitdiff
path: root/packaging/Debian/debian/samba.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/Debian/debian/samba.postrm')
-rw-r--r--packaging/Debian/debian/samba.postrm30
1 files changed, 16 insertions, 14 deletions
diff --git a/packaging/Debian/debian/samba.postrm b/packaging/Debian/debian/samba.postrm
index 73b2f0d0a1..b929061f37 100644
--- a/packaging/Debian/debian/samba.postrm
+++ b/packaging/Debian/debian/samba.postrm
@@ -1,26 +1,28 @@
-#!/bin/sh
+#!/bin/sh -e
+#
+# $Id: samba.postrm,v 1.3 2003/06/01 07:12:51 peloy Exp $
+#
if [ "$1" = purge ]; then
- update-rc.d samba remove >/dev/null
-
- # Remove WINS.DAT, BROWSE.DAT and lock information file
- rm -Rf /var/samba/
- # Remove any files in the old and obsolete /var/lock/samba directory
- rm -Rf /var/lock/samba/
-
- # Remove files left in /etc/samba/
- rm -Rf /etc/samba/debian_config
- rm -Rf /etc/samba/MACHINE.SID
+ # Remove Samba's state files, both volatile and non-volatile
+ rm -Rf /var/run/samba/ /var/cache/samba/ /var/lib/samba
# Remove log files
- rm -f /var/log/[ns]mb*
+ rm -Rf /var/log/samba/
+
+ # Remove init.d configuration file
+ echo Removing configuration file /etc/default/samba... >&2
+ rm -f /etc/default/samba
# Remove NetBIOS entries from /etc/inetd.conf
update-inetd --remove netbios-ssn
- update-inetd --remove netbios-ns
+
+ update-rc.d samba remove >/dev/null
else
# Not purging, do not remove NetBIOS entries from /etc/inetd.conf
update-inetd --disable netbios-ssn
- update-inetd --disable netbios-ns
+
fi
+
+#DEBHELPER#