summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Jennings <djennings@mageia.org>2013-08-31 00:21:22 +0100
committerDerek Jennings <djennings@mageia.org>2013-08-31 00:21:22 +0100
commitf9496fb487045de1de6422f0dcc04c025728501e (patch)
tree27fc3fbce458d463e9a1bfffbb373d896bebe068
parentc0f4d0d6cf962f7db29dcd82d34bf85d5e3ac1a6 (diff)
downloaddrakwizard-f9496fb487045de1de6422f0dcc04c025728501e.tar
drakwizard-f9496fb487045de1de6422f0dcc04c025728501e.tar.gz
drakwizard-f9496fb487045de1de6422f0dcc04c025728501e.tar.bz2
drakwizard-f9496fb487045de1de6422f0dcc04c025728501e.tar.xz
drakwizard-f9496fb487045de1de6422f0dcc04c025728501e.zip
create directory if bind has not
-rw-r--r--NEWS2
-rw-r--r--dns_wizard/Bind.pm2
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index ffa8c6ca..aff78871 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- create directory if bind has not
+
Version 3.7.6 - 27 August 2013, by djennings
- fix race condition checking service status (mga#10830)
diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm
index 9a13e7cb..4a53c352 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 $VNAMED = "/var/named";
my $o = {
name => 'DNS Configuration Wizard',
@@ -799,6 +800,7 @@ sub check_iph {
sub do_it {
$::testing and return;
+ mkdir_p($VNAMED) if !-e $VNAMED;
#my ($st) = @_;
crea_wdir($WDIR);
# create files