Mercurial > noffle
comparison debian/postrm @ 325:c36eb2596531 noffle
[svn] fixed inclusion of db_*
author | godisch |
---|---|
date | Sun, 23 Feb 2003 15:16:46 +0000 |
parents | 5ec39beae9c5 |
children | 794030e45053 |
comparison
equal
deleted
inserted
replaced
324:5ec39beae9c5 | 325:c36eb2596531 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: postrm 459 2003-02-22 21:54:34Z godisch $ | 2 # $Id: postrm 460 2003-02-23 15:16:46Z godisch $ |
3 | 3 |
4 set -e | 4 set -e |
5 . /usr/share/debconf/confmodule | |
6 db_version 2.0 | |
5 | 7 |
6 server_config=/etc/news/noffle.conf | 8 server_config=/etc/news/noffle.conf |
7 debian_config=/etc/default/noffle | 9 debian_config=/etc/default/noffle |
8 | 10 |
9 if [ "$1" = remove -o "$1" = purge ]; then | 11 if [ "$1" = remove -o "$1" = purge ]; then |
16 update-rc.d noffle remove > /dev/null | 18 update-rc.d noffle remove > /dev/null |
17 rm -f /etc/noffle.conf /etc/noffle.conf.old \ | 19 rm -f /etc/noffle.conf /etc/noffle.conf.old \ |
18 $server_config $server_config.old \ | 20 $server_config $server_config.old \ |
19 $debian_config $debian_config.old | 21 $debian_config $debian_config.old |
20 rm -rf /etc/noffle /var/spool/noffle | 22 rm -rf /etc/noffle /var/spool/noffle |
21 if [ -e /usr/share/debconf/confmodule ]; then | 23 db_purge |
22 . /usr/share/debconf/confmodule | |
23 db_purge | |
24 db_stop | |
25 fi | |
26 fi | 24 fi |
27 | 25 |
26 db_stop | |
28 exit 0 | 27 exit 0 |