# HG changeset patch # User godisch # Date 1056088792 -3600 # Node ID cb18c7d41cc599d1de8d45f568d7bcb00e5cb08e # Parent e5153104fbd95f031a959680cd808bd369272a3c [svn] fixed update-inetd diff -r e5153104fbd9 -r cb18c7d41cc5 debian/postinst --- a/debian/postinst Fri Jun 20 06:48:04 2003 +0100 +++ b/debian/postinst Fri Jun 20 06:59:52 2003 +0100 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: postinst 560 2003-06-20 05:48:04Z godisch $ +# $Id: postinst 561 2003-06-20 05:59:52Z godisch $ set -e @@ -105,8 +105,11 @@ fi if ! grep -q "/usr/bin/noffle -r" /etc/inetd.conf; then # just an example, the user needs to activate it himself + # update-inetd will silently fail if nntp is already occupied update-inetd --group MAIL --add "nntp\tstream\ttcp\tnowait\tnews\t/usr/sbin/tcpd /usr/bin/noffle -r" - update-inetd --disable "$port" + if grep -q "^nntp.*/usr/bin/noffle -r"; then + update-inetd --disable "$port" + fi fi fi