comparison debian/postrm @ 425:c2fd00030991 noffle

[svn] added preliminary ucf support
author godisch
date Fri, 20 Jun 2003 17:48:28 +0100
parents 794030e45053
children ee231af1b0d8
comparison
equal deleted inserted replaced
424:afa2ff7b5ebf 425:c2fd00030991
1 #!/bin/sh 1 #!/bin/sh
2 # $Id: postrm 534 2003-05-24 06:05:53Z godisch $ 2 # $Id: postrm 568 2003-06-20 16:48:28Z godisch $
3 3
4 set -e 4 set -e
5
6 server_config=/etc/news/noffle.conf
7 debian_config=/etc/default/noffle
8 5
9 if [ "$1" = remove -o "$1" = purge ]; then 6 if [ "$1" = remove -o "$1" = purge ]; then
10 rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc 7 rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc
11 rm -rf /var/lock/noffle 8 rm -rf /var/lock/noffle
12 fi 9 fi
13 10
14 if [ "$1" = purge ]; then 11 if [ "$1" = purge ]; then
15 update-inetd --remove "/usr/bin/noffle -r" 12 update-inetd --remove "/usr/bin/noffle -r"
16 update-rc.d noffle remove > /dev/null 13 update-rc.d noffle remove > /dev/null
17 rm -f /etc/noffle.conf /etc/noffle.conf.old \ 14 rm -f /etc/noffle.conf /etc/noffle.conf.old \
18 $server_config $server_config.old \ 15 /etc/news/noffle.conf /etc/news/noffle.conf.old \
19 $debian_config $debian_config.old 16 /etc/default/noffle /etc/default/noffle.old
20 rm -rf /etc/noffle /var/spool/noffle 17 rm -rf /etc/noffle /var/spool/noffle
21 if [ -e /usr/share/debconf/confmodule ]; then 18 if [ -e /usr/share/debconf/confmodule ]; then
22 . /usr/share/debconf/confmodule 19 . /usr/share/debconf/confmodule
23 db_purge 20 db_purge
24 fi 21 fi
22 ucf --purge /etc/default/noffle < /dev/tty
23 ucf --purge /etc/news/noffle.conf < /dev/tty
25 fi 24 fi
26 25
27 exit 0 26 exit 0