Mercurial > noffle
comparison debian/postrm @ 466:e769484a87c3 noffle
[svn] fixed removal of old config dir
author | godisch |
---|---|
date | Sat, 26 Jul 2003 08:37:07 +0100 |
parents | 7e0c7dd29d53 |
children | 84c15e2195b5 |
comparison
equal
deleted
inserted
replaced
465:b8065ab36244 | 466:e769484a87c3 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: postrm 599 2003-06-25 17:00:10Z godisch $ | 2 # $Id: postrm 611 2003-07-26 07:37:07Z godisch $ |
3 | 3 |
4 set -e | 4 set -e |
5 | 5 |
6 if [ "$1" = remove -o "$1" = purge ]; then | 6 if [ "$1" = remove -o "$1" = purge ]; then |
7 rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc | 7 rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc |
12 update-inetd --remove "/usr/bin/noffle -r" | 12 update-inetd --remove "/usr/bin/noffle -r" |
13 update-rc.d noffle remove > /dev/null | 13 update-rc.d noffle remove > /dev/null |
14 rm -f /etc/noffle.conf /etc/noffle.conf.old \ | 14 rm -f /etc/noffle.conf /etc/noffle.conf.old \ |
15 /etc/news/noffle.conf /etc/news/noffle.conf.old /etc/news/noffle.conf.dpkg-* \ | 15 /etc/news/noffle.conf /etc/news/noffle.conf.old /etc/news/noffle.conf.dpkg-* \ |
16 /etc/default/noffle /etc/default/noffle.old /etc/default/noffle.dpkg-* | 16 /etc/default/noffle /etc/default/noffle.old /etc/default/noffle.dpkg-* |
17 rm -rf /etc/news/noffle.old /etc/noffle /var/spool/noffle | |
18 if [ -e /usr/share/debconf/confmodule ]; then | 17 if [ -e /usr/share/debconf/confmodule ]; then |
19 . /usr/share/debconf/confmodule | 18 . /usr/share/debconf/confmodule |
20 db_purge | 19 db_purge |
21 fi | 20 fi |
22 ucf --purge /etc/default/noffle < /dev/tty | 21 ucf --purge /etc/default/noffle < /dev/tty |
23 ucf --purge /etc/news/noffle.conf < /dev/tty | 22 ucf --purge /etc/news/noffle.conf < /dev/tty |
23 rmdir --ignore-fail-on-non-empty /etc/news/noffle /etc/news/noffle.old | |
24 rm -rf /var/spool/noffle | |
24 fi | 25 fi |
25 | 26 |
26 exit 0 | 27 exit 0 |