summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dns_wizard/Bind.pm11
1 files changed, 5 insertions, 6 deletions
diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm
index fc5c2826..01ac76a7 100644
--- a/dns_wizard/Bind.pm
+++ b/dns_wizard/Bind.pm
@@ -56,12 +56,6 @@ my $ZONE_DIR = $NAMED_DIR . "/zone";
my $DATE = `date +%d-%m-20%y`;
my $WIZARD_SCRIPTS = "/usr/share/wizards/dns_wizard/scripts";
-if (!-f "$NAMED_DIR/named.ca") {
- cp_af("$WIZARD_SCRIPTS/named.ca","$NAMED_DIR/named.ca");
- cp_af("$WIZARD_SCRIPTS/master","$NAMED_DIR/");
- cp_af("$WIZARD_SCRIPTS/reverse","$NAMED_DIR/");
-}
-
my $o = {
name => 'DNS Configuration Wizard',
var => {
@@ -807,6 +801,11 @@ sub check_iph {
sub do_it {
$::testing and return;
+ if (!-f "$NAMED_DIR/named.ca") {
+ cp_af("$WIZARD_SCRIPTS/named.ca","$NAMED_DIR/named.ca");
+ cp_af("$WIZARD_SCRIPTS/master","$NAMED_DIR/");
+ cp_af("$WIZARD_SCRIPTS/reverse","$NAMED_DIR/");
+ }
#my ($st) = @_;
crea_wdir($WDIR);
# create files