diff -r d1addc2ec712 -r d3269961e944 update-zone --- a/update-zone Fri Aug 13 10:09:37 2010 +0200 +++ b/update-zone Fri Aug 13 17:00:37 2010 +0200 @@ -83,10 +83,6 @@ my $date; $mm++; - - # fuehrt automatische aktuallisierungen der zonen durch - system "$dnssec_sign"; - # prueft jede domain, die ein verzeichnis in $master_dir hat, ob sie # dnssec nutzt. # passt die eintraege in $config_file falls noetig an. @@ -223,35 +219,32 @@ print "\n"; } - if ($changed) { - my $pidfile; - + my $pidfile; - print - "** Changed $changed files, the nameserver needs to be reloaded!\n"; - foreach ( - qw(/var/run/bind/run/named.pid /var/run/named.pid /etc/named.pid)) - { - -f $_ and $pidfile = $_ and last; - } + print + "** Changed $changed files, the nameserver needs to be reloaded!\n"; + foreach ( + qw(/var/run/bind/run/named.pid /var/run/named.pid /etc/named.pid)) + { + -f $_ and $pidfile = $_ and last; + } - # dnssec-sign aufruf fuer geanderten domains - system "$dnssec_sign @change_names"; - die "$dnssec_sign not found ($!)" if $? == -1; - exit 1 if $?; + # dnssec-sign aufruf fuer geanderten domains + system "$dnssec_sign @change_names"; + die "$dnssec_sign not found ($!)" if $? == -1; + exit 1 if $?; - if ($pidfile) { - if ($opt_yes) { - $_ = "y"; - print "** Nameserver will be reloaded\n"; - } - else { print "** Reload now? [Y/n]: "; $_ = ; } - /^y|^$/i and system "rndc reload"; + if ($pidfile) { + if ($opt_yes) { + $_ = "y"; + print "** Nameserver will be reloaded\n"; } - else { - print - "** No PID of a running named found. Please reload manually.\n"; - } + else { print "** Reload now? [Y/n]: "; $_ = ; } + /^y|^$/i and system "rndc reload"; + } + else { + print + "** No PID of a running named found. Please reload manually.\n"; }