[freeside-commits] freeside/bin bind.export,1.10,1.11
Ivan,,,
ivan at wavetail.420.am
Sun Oct 16 07:59:56 PDT 2005
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail:/tmp/cvs-serv1125
Modified Files:
bind.export
Log Message:
don't error out if there's no HEADER file, just produce a useable snippet anyway
Index: bind.export
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/bind.export,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- bind.export 2 Apr 2004 02:09:00 -0000 1.10
+++ bind.export 16 Oct 2005 14:59:54 -0000 1.11
@@ -43,10 +43,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 $zonepath = $export->option('zonepath');
$zonepath =~ s/\/$//;
More information about the freeside-commits
mailing list