Bringing packaging/Debian/* to a more recent state.
[kai/samba.git] / packaging / Debian / debian / samba.postrm
1 #!/bin/sh -e
2 #
3 # $Id: samba.postrm,v 1.3 2003/06/01 07:12:51 peloy Exp $
4 #
5
6 if [ "$1" = purge ]; then
7
8         # Remove Samba's state files, both volatile and non-volatile
9         rm -Rf /var/run/samba/ /var/cache/samba/ /var/lib/samba
10
11         # Remove log files
12         rm -Rf /var/log/samba/
13
14         # Remove init.d configuration file
15         echo  Removing configuration file /etc/default/samba...  >&2
16         rm -f /etc/default/samba
17
18         # Remove NetBIOS entries from /etc/inetd.conf
19         update-inetd --remove netbios-ssn
20
21         update-rc.d samba remove >/dev/null
22 else
23         # Not purging, do not remove NetBIOS entries from /etc/inetd.conf
24         update-inetd --disable netbios-ssn
25
26 fi
27
28 #DEBHELPER#