comparison debian/config @ 424:afa2ff7b5ebf noffle

[svn] cleanup
author godisch
date Fri, 20 Jun 2003 16:58:53 +0100
parents e144202d2d96
children c2fd00030991
comparison
equal deleted inserted replaced
423:466b42bb776e 424:afa2ff7b5ebf
1 #!/bin/sh 1 #!/bin/sh
2 # $Id: config 538 2003-05-29 14:55:19Z godisch $ 2 # $Id: config 567 2003-06-20 15:58:53Z godisch $
3 3
4 set -e 4 set -e
5 . /usr/share/debconf/confmodule 5 . /usr/share/debconf/confmodule
6 db_version 2.0 6 db_version 2.0
7 db_capb backup 7 db_capb backup
10 db_input high noffle/debconf && db_go || : 10 db_input high noffle/debconf && db_go || :
11 db_get noffle/debconf 11 db_get noffle/debconf
12 if [ "$RET" = false ]; then 12 if [ "$RET" = false ]; then
13 db_stop 13 db_stop
14 exit 0 14 exit 0
15 fi
16
17 server_config=/etc/news/noffle.conf
18 debian_config=/etc/default/noffle
19
20 # for backward compatibility = 1.1.2-1, since postinst is not run yet
21 if [ ! -e $server_config -a -e /etc/noffle.conf ]; then
22 server_config=/etc/noffle.conf
23 fi
24 # for backward compatibility < 1.1.2-1
25 if [ ! -e $server_config -a ! -e $debian_config -a -e /etc/noffle/conf ]; then
26 server_config=/etc/noffle/conf
27 debian_config=/etc/noffle/conf.debian
28 fi 15 fi
29 16
30 # for backward compatibility < 1.1.2-1 17 # for backward compatibility < 1.1.2-1
31 if dpkg --compare-versions "$2" lt-nl 1.1.2; then 18 if dpkg --compare-versions "$2" lt-nl 1.1.2; then
32 db_get noffle/fetchmode 19 db_get noffle/fetchmode