[freeside-commits] freeside/bin bind.export,1.11,1.12
Ivan,,,
ivan at wavetail.420.am
Sun Oct 16 08:02:39 PDT 2005
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail:/tmp/cvs-serv1168
Modified Files:
bind.export
Log Message:
and make .HEADER optional for slaves too
Index: bind.export
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/bind.export,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- bind.export 16 Oct 2005 14:59:54 -0000 1.11
+++ bind.export 16 Oct 2005 15:02:37 -0000 1.12
@@ -147,10 +147,12 @@
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 $masters = $sexport->option('master');
More information about the freeside-commits
mailing list