]> eyrie.org Git - kerberos/sident.git/commitdiff
Only try to add the inetd line on an initial install.
authorRuss Allbery <rra@stanford.edu>
Fri, 18 Jun 2004 06:40:07 +0000 (06:40 +0000)
committerRuss Allbery <rra@stanford.edu>
Fri, 18 Jun 2004 06:40:07 +0000 (06:40 +0000)
debian/sidentd.postinst

index 605002445f60cf83cc50af5dca282030877588e1..2482187add91a6db81bfff209d0941c27d33e148 100755 (executable)
@@ -5,8 +5,11 @@ set -e
 
 case "$1" in
     configure)
-        update-inetd --add \
-            'auth\t\tstream\ttcp\tnowait\troot\t/usr/sbin/sidentd sidentd'
+        # Only try to add the inetd line on an initial installation.
+        if [ -z "$2" ] || [ x"$2" = x"<unknown>" ] ; then
+            update-inetd --add \
+                'auth\t\tstream\ttcp\tnowait\troot\t/usr/sbin/sidentd sidentd'
+        fi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)