changeset 418:cb18c7d41cc5 noffle

[svn] fixed update-inetd
author godisch
date Fri, 20 Jun 2003 06:59:52 +0100
parents e5153104fbd9
children e5bd838e0c27
files debian/postinst
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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