From 8ed010db4ea1ecbb507fc63d4223166e88d0216d Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Mon, 8 Aug 2005 02:30:11 +0000 Subject: fix bug #17207 (missing /etc/postfix directory) --- postfix_wizard/Postfix.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1