From d731312ebcf9eae8074bcc7c7521e019b70f2934 Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Sun, 31 Oct 2021 13:46:25 -0400 Subject: [PATCH] logic fix? --- bin/sync-master-vhosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sync-master-vhosts b/bin/sync-master-vhosts index 8a65340..22ae86d 100755 --- a/bin/sync-master-vhosts +++ b/bin/sync-master-vhosts @@ -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: $!";