Mercurial > noffle
diff debian/postinst @ 360:a23b37308063 noffle
[svn] || true cleanup
author | godisch |
---|---|
date | Sat, 29 Mar 2003 06:57:20 +0000 |
parents | 56c3a43af1d5 |
children | 056d5fcb7f4b |
line wrap: on
line diff
--- a/debian/postinst Fri Mar 28 22:17:33 2003 +0000 +++ b/debian/postinst Sat Mar 29 06:57:20 2003 +0000 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: postinst 465 2003-02-25 19:15:27Z godisch $ +# $Id: postinst 499 2003-03-29 06:57:20Z godisch $ set -e @@ -35,32 +35,32 @@ mv -f /etc/noffle.conf.old $server_config.old 2> /dev/null || : fi -db_get noffle/debconf || RET="" +db_get noffle/debconf if [ "$RET" != false ]; then - db_get noffle/port || RET="" + db_get noffle/port port="$RET" [ -z "$port" -o "$port" = 119 ] && port=nntp || : # maybe disabled only, e.g. dpkg -r noffle update-inetd --remove "/usr/bin/noffle -r" || : update-inetd --group MAIL --add "$port\tstream\ttcp\tnowait\tnews\t/usr/sbin/tcpd /usr/bin/noffle -r" - db_get noffle/server || RET="" + db_get noffle/server server="$RET" [ "$server" ] || server=news - db_get noffle/username || RET="" + db_get noffle/username username="$RET" - db_get noffle/password || RET="" + db_get noffle/password password="$RET" - db_get noffle/fetchmode || RET="" + db_get noffle/fetchmode fetchmode="$RET" [ "$fetchmode" ] || if [ -x /usr/sbin/pppd ]; then fetchmode=ppp else fetchmode=cron fi - db_get noffle/maxfetch || RET="" + db_get noffle/maxfetch maxfetch="$RET" [ "$maxfetch" ] || maxfetch="$maxfetch_default" - db_get noffle/default-expire || RET="" + db_get noffle/default-expire defexpire="$RET" [ "$defexpire" ] || defexpire="$defexpire_default" # try to be idempotent