# HG changeset patch # User asuess@dns.net.schlittermann.de # Date 1279200398 -7200 # Node ID bf1e441c195c829c8bcd387196dc806e6d24db63 # Parent 473a1763f0955fcdbed69e1d71771fac119e7793 ... diff -r 473a1763f095 -r bf1e441c195c mkready --- 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