summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2005-08-08 02:30:11 +0000
committerAntoine Ginies <aginies@mandriva.com>2005-08-08 02:30:11 +0000
commit8ed010db4ea1ecbb507fc63d4223166e88d0216d (patch)
tree63cbc389a71b70098b6a8fcc737721958000b74d
parent6d5c6fa8e9e4de1f6f91e80d5aa8e2aa823de27b (diff)
downloaddrakwizard-8ed010db4ea1ecbb507fc63d4223166e88d0216d.tar
drakwizard-8ed010db4ea1ecbb507fc63d4223166e88d0216d.tar.gz
drakwizard-8ed010db4ea1ecbb507fc63d4223166e88d0216d.tar.bz2
drakwizard-8ed010db4ea1ecbb507fc63d4223166e88d0216d.tar.xz
drakwizard-8ed010db4ea1ecbb507fc63d4223166e88d0216d.zip
fix bug #17207 (missing /etc/postfix directory)
-rwxr-xr-xpostfix_wizard/Postfix.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/postfix_wizard/Postfix.pm b/postfix_wizard/Postfix.pm
index 5aba4a19..37eb3e9c 100755
--- a/postfix_wizard/Postfix.pm
+++ b/postfix_wizard/Postfix.pm
@@ -36,7 +36,8 @@ use Libconf::Glueconf::Postfix::Main_cf;
my $default_conf = "/etc/postfix/main.cf.dist";
# provide a default postfix configuration file
-!-d $default_conf and cp_af("/usr/share/wizards/postfix_wizard/scripts/main.cf.dist.default", $default_conf);
+!-d mkdir("/etc/postfix/") and mkdir("/etc/postfix/");
+!-f $default_conf and cp_af("/usr/share/wizards/postfix_wizard/scripts/main.cf.dist.default", $default_conf);
if (!-f "/etc/postfix/main.cf") { cp_af($default_conf, "/etc/postfix/main.cf") }
my $postfix = new Libconf::Glueconf::Postfix::Main_cf({ filename => '/etc/postfix/main.cf', });
use Data::Dumper;