comparison debian/postinst @ 330:56c3a43af1d5 noffle

[svn] small bugfixes
author godisch
date Tue, 25 Feb 2003 19:15:27 +0000
parents c36eb2596531
children a23b37308063
comparison
equal deleted inserted replaced
329:95f382346e75 330:56c3a43af1d5
1 #!/bin/sh 1 #!/bin/sh
2 # $Id: postinst 460 2003-02-23 15:16:46Z godisch $ 2 # $Id: postinst 465 2003-02-25 19:15:27Z godisch $
3 3
4 set -e 4 set -e
5 5
6 [ "$1" = configure ] || exit 0 6 [ "$1" = configure ] || exit 0
7 7
37 37
38 db_get noffle/debconf || RET="" 38 db_get noffle/debconf || RET=""
39 if [ "$RET" != false ]; then 39 if [ "$RET" != false ]; then
40 db_get noffle/port || RET="" 40 db_get noffle/port || RET=""
41 port="$RET" 41 port="$RET"
42 [ -z "$port" -o "$port" = 119 ] && port=nntp 42 [ -z "$port" -o "$port" = 119 ] && port=nntp || :
43 # maybe disabled only, e.g. dpkg -r noffle 43 # maybe disabled only, e.g. dpkg -r noffle
44 update-inetd --remove "/usr/bin/noffle -r" || : 44 update-inetd --remove "/usr/bin/noffle -r" || :
45 update-inetd --group MAIL --add "$port\tstream\ttcp\tnowait\tnews\t/usr/sbin/tcpd /usr/bin/noffle -r" 45 update-inetd --group MAIL --add "$port\tstream\ttcp\tnowait\tnews\t/usr/sbin/tcpd /usr/bin/noffle -r"
46 db_get noffle/server || RET="" 46 db_get noffle/server || RET=""
47 server="$RET" 47 server="$RET"