Mercurial > noffle
comparison debian/config @ 395:056d5fcb7f4b noffle
[svn] updated deb'configuration
author | godisch |
---|---|
date | Thu, 29 May 2003 15:44:56 +0100 |
parents | 36296f2b60e6 |
children | e144202d2d96 |
comparison
equal
deleted
inserted
replaced
394:3d3a0dab6011 | 395:056d5fcb7f4b |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: config 503 2003-03-29 08:06:12Z godisch $ | 2 # $Id: config 537 2003-05-29 14:44:56Z 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 |
8 | |
9 # are we using debconf? | |
10 db_input high noffle/debconf && db_go || : | |
11 db_get noffle/debconf | |
12 if [ "$RET" = false ]; then | |
13 db_stop | |
14 exit 0 | |
15 fi | |
8 | 16 |
9 server_config=/etc/news/noffle.conf | 17 server_config=/etc/news/noffle.conf |
10 debian_config=/etc/default/noffle | 18 debian_config=/etc/default/noffle |
11 | 19 |
12 # for backward compatibility = 1.1.2-1, since postinst is not run yet | 20 # for backward compatibility = 1.1.2-1, since postinst is not run yet |
15 fi | 23 fi |
16 # for backward compatibility < 1.1.2-1 | 24 # for backward compatibility < 1.1.2-1 |
17 if [ ! -e $server_config -a ! -e $debian_config -a -e /etc/noffle/conf ]; then | 25 if [ ! -e $server_config -a ! -e $debian_config -a -e /etc/noffle/conf ]; then |
18 server_config=/etc/noffle/conf | 26 server_config=/etc/noffle/conf |
19 debian_config=/etc/noffle/conf.debian | 27 debian_config=/etc/noffle/conf.debian |
20 fi | |
21 | |
22 # are we using debconf? | |
23 db_input high noffle/debconf && db_go || : | |
24 db_get noffle/debconf | |
25 if [ "$RET" = false ]; then | |
26 db_stop | |
27 exit 0 | |
28 fi | 28 fi |
29 | 29 |
30 # read server port value from inetd.conf | 30 # read server port value from inetd.conf |
31 port="`grep '[[:space:]]/usr/bin/noffle[[:space:]]' /etc/inetd.conf | head -n 1 | sed 's/^#<off># //;s/[[:space:]].*//' 2> /dev/null`" || : | 31 port="`grep '[[:space:]]/usr/bin/noffle[[:space:]]' /etc/inetd.conf | head -n 1 | sed 's/^#<off># //;s/[[:space:]].*//' 2> /dev/null`" || : |
32 if [ "$port" ]; then | 32 if [ "$port" ]; then |