[pkg-firebird-general] todo#7

Tamas TEVESZ ice at extreme.hu
Tue Mar 6 19:52:54 CET 2007


part one is 'cos it's not needed
part two looks a good start for todo#7


Index: debian/functions.sh
===================================================================
--- debian/functions.sh	(revision 1018)
+++ debian/functions.sh	(working copy)
@@ -270,7 +270,7 @@
     then
         if [ -z "${ISC_PASSWORD:-}" ];
         then
-            NewPassword=`cut -c 1-8 < /proc/sys/kernel/random/uuid`
+            NewPassword=`cut -c 1-8 /proc/sys/kernel/random/uuid`
         else
             NewPassword=$ISC_PASSWORD
         fi
@@ -301,10 +301,11 @@
         chmod u=rw,go=r $hostsEquiv
     fi
 
-    for l in localhost localhost.localdomain ;
-    do
-        grep "^$l\$" $hostsEquiv > /dev/null || echo $l >> $hostsEquiv
-    done
+    echo 'localhost' > $hostsEquiv
+
+    if grep -E '^[^#]*localhost\.localdomain[[:space:]]*$' /etc/hosts.equiv ; then
+	echo 'localhost.localdomain' >> $hostsEquiv
+    fi
 }
 
 

-- 
[-]

mkdir /nonexistent



More information about the pkg-firebird-general mailing list