summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--dns_wizard/Bind.pm4
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b875ac84..ed4a13b6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- copy bind templates if not present (mga#10981)
+
Version 3.10 - 24 Aug 2013 by Derek Jennings
- fix race condition checking service status (mga#10934)
diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm
index 4d8b4674..355c5ae6 100644
--- a/dns_wizard/Bind.pm
+++ b/dns_wizard/Bind.pm
@@ -54,6 +54,7 @@ my $TEXTINFO = "dns Wizard";
my $REP_SAVE = "/tmp/bck";
my $ZONE_DIR = $NAMED_DIR . "/zone";
my $DATE = `date +%d-%m-20%y`;
+my $WIZARD_SCRIPTS = "/usr/share/wizards/dns_wizard/scripts";
my $o = {
name => 'DNS Configuration Wizard',
@@ -800,6 +801,9 @@ sub check_iph {
sub do_it {
$::testing and return;
+ foreach (qw(named.ca master reverse)) {
+ cp_af("$WIZARD_SCRIPTS/$_","$NAMED_DIR/$_") if !-e "$NAMED_DIR/$_";
+ }
#my ($st) = @_;
crea_wdir($WDIR);
# create files