Mercurial > noffle
comparison debian/postrm @ 392:794030e45053 noffle
[svn] fixed debconf in handling in postrm
author | godisch |
---|---|
date | Sat, 24 May 2003 07:05:53 +0100 |
parents | c36eb2596531 |
children | c2fd00030991 |
comparison
equal
deleted
inserted
replaced
391:6cb66f5a0479 | 392:794030e45053 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: postrm 460 2003-02-23 15:16:46Z godisch $ | 2 # $Id: postrm 534 2003-05-24 06:05:53Z godisch $ |
3 | 3 |
4 set -e | 4 set -e |
5 . /usr/share/debconf/confmodule | |
6 db_version 2.0 | |
7 | 5 |
8 server_config=/etc/news/noffle.conf | 6 server_config=/etc/news/noffle.conf |
9 debian_config=/etc/default/noffle | 7 debian_config=/etc/default/noffle |
10 | 8 |
11 if [ "$1" = remove -o "$1" = purge ]; then | 9 if [ "$1" = remove -o "$1" = purge ]; then |
18 update-rc.d noffle remove > /dev/null | 16 update-rc.d noffle remove > /dev/null |
19 rm -f /etc/noffle.conf /etc/noffle.conf.old \ | 17 rm -f /etc/noffle.conf /etc/noffle.conf.old \ |
20 $server_config $server_config.old \ | 18 $server_config $server_config.old \ |
21 $debian_config $debian_config.old | 19 $debian_config $debian_config.old |
22 rm -rf /etc/noffle /var/spool/noffle | 20 rm -rf /etc/noffle /var/spool/noffle |
23 db_purge | 21 if [ -e /usr/share/debconf/confmodule ]; then |
22 . /usr/share/debconf/confmodule | |
23 db_purge | |
24 fi | |
24 fi | 25 fi |
25 | 26 |
26 db_stop | |
27 exit 0 | 27 exit 0 |