diff options
author | Eloy Paris <peloy@samba.org> | 2003-06-01 04:30:13 +0000 |
---|---|---|
committer | Eloy Paris <peloy@samba.org> | 2003-06-01 04:30:13 +0000 |
commit | 72cc0c82c415c872e270d924c795d6ac907a32fb (patch) | |
tree | dd0b7cb81c75fe123179988c264e445383eb25ed /packaging/Debian/debian/samba.postrm | |
parent | dbd4a83c7ffbf7043e085c5382f55cf336daf27e (diff) | |
download | samba-72cc0c82c415c872e270d924c795d6ac907a32fb.tar.gz samba-72cc0c82c415c872e270d924c795d6ac907a32fb.tar.bz2 samba-72cc0c82c415c872e270d924c795d6ac907a32fb.zip |
Bringing packaging/Debian/ up to date with the current Samba package
in Debian unstable. The stuff here was ages old...
(This used to be commit 5646df8bfb327d74f9c07fc219023a5aecdbc70d)
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# |