logic fix?

This commit is contained in:
2021-10-31 13:46:25 -04:00
parent f342352a3a
commit d731312ebc

View File

@ -20,7 +20,7 @@ my @vh = $ddns->get('_vhosts');
my $changecount = 0; my $changecount = 0;
foreach my $i (@vh) { foreach my $i (@vh) {
my $zf = "/var/lib/bind/vhost/db.$i->{zone}"; 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"; print "Generating new zone file for $i->{zone}\n";
open(my $fh, ">", $zf) open(my $fh, ">", $zf)
|| die "Can't create output file $zf: $!"; || die "Can't create output file $zf: $!";