Mercurial > noffle
diff debian/postinst @ 486:a5cb498bcbed noffle
[svn] *** empty log message ***
author | godisch |
---|---|
date | Sun, 28 Nov 2004 09:46:27 +0000 |
parents | fb5e1ef118eb |
children |
line wrap: on
line diff
--- a/debian/postinst Sat Nov 27 23:20:10 2004 +0000 +++ b/debian/postinst Sun Nov 28 09:46:27 2004 +0000 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: postinst 604 2003-07-14 06:56:43Z godisch $ +# $Id: postinst 633 2004-11-28 09:46:27Z godisch $ set -e @@ -41,14 +41,14 @@ sed "s/^default-expire[[:space:]].*/default-expire $defexpire/" \ > /etc/news/noffle.conf.new chgrp news /etc/news/noffle.conf.new - ucf /etc/news/noffle.conf.new /etc/news/noffle.conf < /dev/tty + ucf --debconf-ok /etc/news/noffle.conf.new /etc/news/noffle.conf rm -f /etc/news/noffle.conf.new umask 022 cat /usr/share/noffle/conf.debian | \ sed "s/^NOFFLE_FETCHMODE=.*/NOFFLE_FETCHMODE=$fetchmode/" \ > /etc/default/noffle.new - ucf /etc/default/noffle.new /etc/default/noffle < /dev/tty + ucf --debconf-ok /etc/default/noffle.new /etc/default/noffle rm -f /etc/default/noffle.new db_get noffle/port @@ -61,8 +61,8 @@ db_stop else - ucf /usr/share/noffle/noffle.conf /etc/news/noffle.conf < /dev/tty - ucf /usr/share/noffle/conf.debian /etc/default/noffle < /dev/tty + ucf /usr/share/noffle/noffle.conf /etc/news/noffle.conf + ucf /usr/share/noffle/conf.debian /etc/default/noffle port="`grep "/usr/bin/noffle -r" /etc/inetd.conf 2> /dev/null | sed 's/[[:space:]].*$//'`" || true if [ "$port" ]; then update-inetd --enable "$port"