r12: - add "" around $script
authorDinko Korunic <Dinko.Korunic@CARNet.hr>
Wed, 31 Oct 2007 17:11:51 +0000 (17:11 +0000)
committerDinko Korunic <Dinko.Korunic@CARNet.hr>
Wed, 31 Oct 2007 17:11:51 +0000 (17:11 +0000)
debian/postinst

index d5f2e77..49b83ca 100755 (executable)
@@ -153,10 +153,10 @@ EOF
 script='/^logging/,/^}/ { if ($0 ~ /category lame-servers/) { print "yes"; exit } }'
 lameconf=
 if [ -e /etc/bind/named.conf.options -a -e /etc/bind/named.conf ]; then
-  lameconf=$(cat /etc/bind/named.conf /etc/bind/named.conf.options | awk $script)
+  lameconf=$(cat /etc/bind/named.conf /etc/bind/named.conf.options | awk "$script")
 else
     if [ -e /etc/bind/named.conf ]; then
-      lameconf=$(awk $script /etc/bind/named.conf)
+      lameconf=$(awk "$script" /etc/bind/named.conf)
     fi
 fi
 if [ "x$lameconf" != "xyes" ]; then