summaryrefslogtreecommitdiffstats
path: root/dns_wizard
diff options
context:
space:
mode:
authorDerek Jennings <djennings@mageia.org>2013-08-30 18:04:24 +0100
committerDerek Jennings <djennings@mageia.org>2013-08-30 18:04:24 +0100
commit6b415ea2179e9836fd8bb0f45bd4514dd0281f9a (patch)
tree241fca852fd8b06bac7c90ecbd6a6df9f40ed1a2 /dns_wizard
parent22c26059136870dcbcf7855625afbd2f081c45ea (diff)
downloaddrakwizard-6b415ea2179e9836fd8bb0f45bd4514dd0281f9a.tar
drakwizard-6b415ea2179e9836fd8bb0f45bd4514dd0281f9a.tar.gz
drakwizard-6b415ea2179e9836fd8bb0f45bd4514dd0281f9a.tar.bz2
drakwizard-6b415ea2179e9836fd8bb0f45bd4514dd0281f9a.tar.xz
drakwizard-6b415ea2179e9836fd8bb0f45bd4514dd0281f9a.zip
copy bind templates if not present (mga#10981)
Diffstat (limited to 'dns_wizard')
-rw-r--r--dns_wizard/Bind.pm4
1 files changed, 4 insertions, 0 deletions
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