diff options
author | Antoine Ginies <aginies@mandriva.com> | 2005-08-08 02:30:11 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2005-08-08 02:30:11 +0000 |
commit | 8ed010db4ea1ecbb507fc63d4223166e88d0216d (patch) | |
tree | 63cbc389a71b70098b6a8fcc737721958000b74d | |
parent | 6d5c6fa8e9e4de1f6f91e80d5aa8e2aa823de27b (diff) | |
download | drakwizard-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-x | postfix_wizard/Postfix.pm | 3 |
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; |