tags 398542 + patch
thanks

Make sure that the update-inetd is available in the postrm script before
using it. In the real-world-unlikely scenario where it's not available,
let the user clean up /etc/inetd.conf manually....

Patch attached.

-- 
Regards,
Andreas Henriksson
diff -ur sn-0.3.8.orig/debian/postrm sn-0.3.8/debian/postrm
--- sn-0.3.8.orig/debian/postrm 2006-11-15 21:32:08.000000000 +0100
+++ sn-0.3.8/debian/postrm      2006-11-15 21:34:19.000000000 +0100
@@ -20,7 +20,9 @@
 
 case "$1" in
        
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-       update-inetd --group NEWS --remove 'nntp stream tcp nowait news.news 
/usr/sbin/tcpd /usr/sbin/snntpd logger -p news.info'
+       if which update-inetd >/dev/null 2>&1 ; then
+               update-inetd --group NEWS --remove 'nntp stream tcp nowait 
news.news /usr/sbin/tcpd /usr/sbin/snntpd logger -p news.info'
+       fi
 esac
 
 case "$1" in

Reply via email to