--- a/mkready Thu Jul 15 15:02:30 2010 +0200
+++ b/mkready Thu Jul 15 15:26:38 2010 +0200
@@ -8,6 +8,9 @@
conf_dir="$ZONE_CONF_DIR"
bind_dir="$BIND_DIR"
+tmpfile=`mktemp`
+trap "rm -f $tmpfile" EXIT QUIT INI
+
for zone_domain in $master_dir/*
do
domain=${zone_domain##/*/}
@@ -21,7 +24,7 @@
# nicht signiert wird die standard-zonedatei eingetragen.
if [ -f $master_dir/$domain/$domain.signed ]
then
- if ( ! grep "file" $conf_file | grep "signed" ) > /dev/null
+ if ! grep -q "file" $conf_file | grep "signed"
then
cp $conf_file .tmp
sed -e "s\\$zone\\$zone_signed\\g" < .tmp > $conf_file