logic fix?
This commit is contained in:
@ -20,7 +20,7 @@ my @vh = $ddns->get('_vhosts');
|
||||
my $changecount = 0;
|
||||
foreach my $i (@vh) {
|
||||
my $zf = "/var/lib/bind/vhost/db.$i->{zone}";
|
||||
unless ( $force_replace || -f $zf ) {
|
||||
if ( $force_replace || (! -f $zf) ) {
|
||||
print "Generating new zone file for $i->{zone}\n";
|
||||
open(my $fh, ">", $zf)
|
||||
|| die "Can't create output file $zf: $!";
|
||||
|
||||
Reference in New Issue
Block a user