projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f234445
)
add option to set (r)ndc command
author
ivan
<ivan>
Fri, 2 Apr 2004 02:09:01 +0000
(
02:09
+0000)
committer
ivan
<ivan>
Fri, 2 Apr 2004 02:09:01 +0000
(
02:09
+0000)
FS/FS/part_export/bind.pm
patch
|
blob
|
history
bin/bind.export
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/bind.pm
b/FS/FS/part_export/bind.pm
index
cf73ef4
..
1ef7b65
100644
(file)
--- a/
FS/FS/part_export/bind.pm
+++ b/
FS/FS/part_export/bind.pm
@@
-17,7
+17,8
@@
tie %options, 'Tie::IxHash',
default => 'BIND8' },
'bind9_minttl' => { label => 'The minttl required by bind9 and RFC1035.',
default => '1D' },
default => 'BIND8' },
'bind9_minttl' => { label => 'The minttl required by bind9 and RFC1035.',
default => '1D' },
-;
+ 'reload' => { label => 'Optional reload command. If not specified, defaults to "ndc" under BIND8 and "rndc" under BIND9.', },
+;
%info = (
'svc' => 'svc_domain',
%info = (
'svc' => 'svc_domain',
diff --git
a/bin/bind.export
b/bin/bind.export
index
64d4406
..
d0b9379
100755
(executable)
--- 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 $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
my $minttl = $export->option('bind9_minttl');
#prevent old domain files from piling up