301
|
1 #!/bin/sh
|
|
2 # $Id: postrm 434 2003-02-14 13:54:32Z godisch $
|
|
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 \
|
|
19 /var/spool/noffle || :
|
|
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
|