This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[jra/samba/.git] / packaging / Debian / debian / samba.postrm
1 #!/bin/sh
2
3 if [ "$1" = purge ]; then
4         update-rc.d samba remove >/dev/null
5
6         # Remove WINS.DAT, BROWSE.DAT and lock information file
7         rm -Rf /var/samba/
8
9         # Remove any files in the old and obsolete /var/lock/samba directory
10         rm -Rf /var/lock/samba/
11
12         # Remove files left in /etc/samba/
13         rm -Rf /etc/samba/debian_config
14         rm -Rf /etc/samba/MACHINE.SID
15
16         # Remove log files
17         rm -f /var/log/[ns]mb*
18
19         # Remove NetBIOS entries from /etc/inetd.conf
20         update-inetd --remove netbios-ssn
21         update-inetd --remove netbios-ns
22 else
23         # Not purging, do not remove NetBIOS entries from /etc/inetd.conf
24         update-inetd --disable netbios-ssn
25         update-inetd --disable netbios-ns
26 fi