diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bind.export | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/bind.export b/bin/bind.export index d0b93797e..9f4a50162 100755 --- a/bin/bind.export +++ b/bin/bind.export @@ -43,10 +43,12 @@ foreach my $export ( @exports ) { open(NAMED_CONF,">$prefix/named.conf") or die "can't open $prefix/named.conf: $!"; - open(CONF_HEADER,"<$prefix/named.conf.HEADER") - or die "can't open $prefix/named.conf.HEADER: $!"; - while (<CONF_HEADER>) { print NAMED_CONF $_; } - close CONF_HEADER; + if ( -e "$prefix/named.conf.HEADER" ) { + open(CONF_HEADER,"<$prefix/named.conf.HEADER") + or die "can't open $prefix/named.conf.HEADER: $!"; + while (<CONF_HEADER>) { print NAMED_CONF $_; } + close CONF_HEADER; + } my $zonepath = $export->option('zonepath'); $zonepath =~ s/\/$//; |