diff options
Diffstat (limited to 'packaging/Debian/debian/samba.postrm')
-rw-r--r-- | packaging/Debian/debian/samba.postrm | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/packaging/Debian/debian/samba.postrm b/packaging/Debian/debian/samba.postrm index 73b2f0d0a1..e3b00fabf4 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.2.4.1 2003/06/01 04:30:10 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# |