Mercurial > noffle
comparison debian/postinst @ 444:bfdba1698a58 noffle
[svn] update
author | godisch |
---|---|
date | Wed, 25 Jun 2003 16:58:44 +0100 |
parents | b415fa4d18ee |
children | 0a5e33528ec1 |
comparison
equal
deleted
inserted
replaced
443:b415fa4d18ee | 444:bfdba1698a58 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh -x |
2 # $Id: postinst 586 2003-06-25 15:41:02Z godisch $ | 2 # $Id: postinst 587 2003-06-25 15:58:44Z godisch $ |
3 | 3 |
4 set -e | 4 set -e |
5 | 5 |
6 [ "$1" = configure ] || exit 0 | 6 [ "$1" = configure ] || exit 0 |
7 | 7 |
8 maxfetch_default=300 | 8 maxfetch_default=300 |
9 defexpire_default=14 | 9 defexpire_default=14 |
10 | |
11 if dpkg --compare-versions "$2" lt-nl 1.1.2-1; then | |
12 echo | |
13 echo "/etc/noffle/conf moved to /etc/news/noffle.conf, /etc/noffle/conf.debian" | |
14 echo "moved to /etc/default/noffle. /etc/noffle and /var/log/noffle are not" | |
15 echo "used any longer, you may remove them. noffle expiration logs are" | |
16 echo "still available through syslog." | |
17 echo | |
18 sleep 2 | |
19 mv -fb /etc/noffle/conf /etc/news/noffle.conf || true | |
20 mv -fb /etc/noffle/conf.debian /etc/default/noffle || true | |
21 mv -fb /etc/noffle/conf.old /etc/news/noffle.conf.old 2> /dev/null || true | |
22 mv -fb /etc/noffle/conf.debian.old /etc/default/noffle.old 2> /dev/null || true | |
23 rmdir /etc/noffle 2> /dev/null || true | |
24 fi | |
25 | |
26 if dpkg --compare-versions "$2" eq 1.1.2-1; then | |
27 # 1.1.2-1 was in unstable only, don't notify | |
28 mv -fb /etc/noffle.conf /etc/news/noffle.conf || true | |
29 mv -fb /etc/noffle.conf.old /etc/news/noffle.conf.old 2> /dev/null || true | |
30 fi | |
31 | 10 |
32 if [ -e /usr/share/debconf/confmodule ]; then | 11 if [ -e /usr/share/debconf/confmodule ]; then |
33 . /usr/share/debconf/confmodule | 12 . /usr/share/debconf/confmodule |
34 db_version 2.0 | 13 db_version 2.0 |
35 | 14 |