From ca0e907fcdadb0f6bc435bbf8a65dcc1e34d9601 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 21 Apr 2019 14:36:45 -0700 Subject: [PATCH] Handle case of no zone files better --- bind8/bind8-lib.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bind8/bind8-lib.pl b/bind8/bind8-lib.pl index 451f3c120..b82b4155f 100755 --- a/bind8/bind8-lib.pl +++ b/bind8/bind8-lib.pl @@ -2394,8 +2394,7 @@ foreach my $k (keys %znc) { } } } -if ($changed || !$filecount || $znc{'version'} != $zone_names_version || - !$donefile{$config{'named_conf'}} || +if ($changed || $znc{'version'} != $zone_names_version || $config{'no_chroot'} != $znc{'no_chroot_config'} || $config{'pid_file'} ne $znc{'pidfile_config'}) { # Yes .. need to rebuild