annotate debian/postrm @ 309:21ba70d6eb38 noffle

[svn] removed /var/lock/noffle on purge
author godisch
date Wed, 19 Feb 2003 06:26:09 +0000
parents 3b5b7f3fd71f
children 7c6035f8656f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
1 #!/bin/sh
309
21ba70d6eb38 [svn] removed /var/lock/noffle on purge
godisch
parents: 301
diff changeset
2 # $Id: postrm 443 2003-02-19 06:26:09Z godisch $
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
3
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
4 set -e
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
5 . /usr/share/debconf/confmodule
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
6 db_version 2.0
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
7
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
8 server_config=/etc/news/noffle.conf
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
9 debian_config=/etc/default/noffle
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
10
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
11 case "$1" in
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
12 purge)
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
13 update-inetd --remove "/usr/bin/noffle -r" || :
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
14 echo "Removing /var/spool/noffle and contents..."
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
15 rm -rf /etc/noffle \
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
16 /etc/noffle.conf /etc/noffle.conf.old \
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
17 $server_config $server_config.old \
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
18 $debian_config $debian_config.old \
309
21ba70d6eb38 [svn] removed /var/lock/noffle on purge
godisch
parents: 301
diff changeset
19 /var/spool/noffle /var/lock/noffle || :
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
20 update-rc.d noffle remove > /dev/null
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
21 db_purge
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
22 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
23 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
24 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
25 *)
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
26 echo "postrm called with unknown argument '$1'" >&2
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
27 exit 1
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
28 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
29 esac
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
30
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
31 exit 0