summaryrefslogtreecommitdiff
path: root/bin/bind.export
diff options
context:
space:
mode:
authorivan <ivan>2004-04-02 02:09:01 +0000
committerivan <ivan>2004-04-02 02:09:01 +0000
commit243b248a929e99a9cc64e16f29e4a49afeb87a3c (patch)
tree60da80110e8f09cee2226f8a169afbec977bca23 /bin/bind.export
parentf234445206998dedfbe74ae59128f6a40c53fe4d (diff)
add option to set (r)ndc command
Diffstat (limited to 'bin/bind.export')
-rwxr-xr-xbin/bind.export3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/bind.export b/bin/bind.export
index 64d4406..d0b9379 100755
--- a/bin/bind.export
+++ b/bin/bind.export
@@ -31,7 +31,8 @@ foreach my $export ( @exports ) {
my $prefix = "$spooldir/$machine";
my $bind_rel = $export->option('bind_release');
- my $ndc_cmd = ($bind_rel eq 'BIND9') ? 'rndc' : 'ndc';
+ my $ndc_cmd = $export->option('reload')
+ || ( ($bind_rel eq 'BIND9') ? 'rndc' : 'ndc' );
my $minttl = $export->option('bind9_minttl');
#prevent old domain files from piling up