summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Jennings <djennings@mageia.org>2013-08-29 23:34:41 +0100
committerDerek Jennings <djennings@mageia.org>2013-08-29 23:34:41 +0100
commit8a28ab8b5209d2a138b62ed9b14e87c54bae37df (patch)
tree2b90e3e19816792fd4989b0e2c0568bd4a554ff5
parentb4f5a6370b113453e6e7045d90d5b73d20343657 (diff)
downloaddrakwizard-8a28ab8b5209d2a138b62ed9b14e87c54bae37df.tar
drakwizard-8a28ab8b5209d2a138b62ed9b14e87c54bae37df.tar.gz
drakwizard-8a28ab8b5209d2a138b62ed9b14e87c54bae37df.tar.bz2
drakwizard-8a28ab8b5209d2a138b62ed9b14e87c54bae37df.tar.xz
drakwizard-8a28ab8b5209d2a138b62ed9b14e87c54bae37df.zip
copy templates after bind installed
-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