diff options
author | Derek Jennings <djennings@mageia.org> | 2013-08-31 00:21:22 +0100 |
---|---|---|
committer | Derek Jennings <djennings@mageia.org> | 2013-08-31 00:21:22 +0100 |
commit | f9496fb487045de1de6422f0dcc04c025728501e (patch) | |
tree | 27fc3fbce458d463e9a1bfffbb373d896bebe068 | |
parent | c0f4d0d6cf962f7db29dcd82d34bf85d5e3ac1a6 (diff) | |
download | drakwizard-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-- | NEWS | 2 | ||||
-rw-r--r-- | dns_wizard/Bind.pm | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -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 |