301
|
1 #!/bin/sh
|
309
|
2 # $Id: postrm 443 2003-02-19 06:26:09Z godisch $
|
301
|
3
|
|
4 set -e
|
|
5 . /usr/share/debconf/confmodule
|
|
6 db_version 2.0
|
|
7
|
|
8 server_config=/etc/news/noffle.conf
|
|
9 debian_config=/etc/default/noffle
|
|
10
|
|
11 case "$1" in
|
|
12 purge)
|
|
13 update-inetd --remove "/usr/bin/noffle -r" || :
|
|
14 echo "Removing /var/spool/noffle and contents..."
|
|
15 rm -rf /etc/noffle \
|
|
16 /etc/noffle.conf /etc/noffle.conf.old \
|
|
17 $server_config $server_config.old \
|
|
18 $debian_config $debian_config.old \
|
309
|
19 /var/spool/noffle /var/lock/noffle || :
|
301
|
20 update-rc.d noffle remove > /dev/null
|
|
21 db_purge
|
|
22 ;;
|
|
23 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
|
24 ;;
|
|
25 *)
|
|
26 echo "postrm called with unknown argument '$1'" >&2
|
|
27 exit 1
|
|
28 ;;
|
|
29 esac
|
|
30
|
|
31 exit 0
|