r17063: Update debian-sarge for 3.0.23
[ira/wip.git] / packaging / Debian / debian-sarge / samba.postrm
1 #!/bin/sh -e
2 #
3 #
4
5 if [ "$1" = purge ]; then
6
7         # Remove Samba's state files, both volatile and non-volatile
8         rm -Rf /var/run/samba/ /var/cache/samba/ /var/lib/samba
9
10         # Remove log files
11         rm -Rf /var/log/samba/
12
13         # Remove init.d configuration file
14         echo  Removing configuration file /etc/default/samba...  >&2
15         rm -f /etc/default/samba
16
17         # Remove NetBIOS entries from /etc/inetd.conf
18         update-inetd --remove netbios-ssn
19
20 else
21         # Not purging, do not remove NetBIOS entries from /etc/inetd.conf
22         update-inetd --disable netbios-ssn
23
24 fi
25
26 #DEBHELPER#