summaryrefslogtreecommitdiffstats
path: root/web_wizard
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2005-09-05 08:11:36 +0000
committerAntoine Ginies <aginies@mandriva.com>2005-09-05 08:11:36 +0000
commitbc78622b6b66675acf726c4c28d5731b8e3c21ae (patch)
tree4e5fb791eaa5737b14f3e80ff60d81cc1ff48b5e /web_wizard
parentedf88e0adac942c19fdde23759d610a3ad999de1 (diff)
downloaddrakwizard-bc78622b6b66675acf726c4c28d5731b8e3c21ae.tar
drakwizard-bc78622b6b66675acf726c4c28d5731b8e3c21ae.tar.gz
drakwizard-bc78622b6b66675acf726c4c28d5731b8e3c21ae.tar.bz2
drakwizard-bc78622b6b66675acf726c4c28d5731b8e3c21ae.tar.xz
drakwizard-bc78622b6b66675acf726c4c28d5731b8e3c21ae.zip
fix user_dir pb
Diffstat (limited to 'web_wizard')
-rwxr-xr-xweb_wizard/Apache.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/web_wizard/Apache.pm b/web_wizard/Apache.pm
index 6fe4b1a6..da6aee57 100755
--- a/web_wizard/Apache.pm
+++ b/web_wizard/Apache.pm
@@ -100,10 +100,14 @@ $o->{pages} = {
name => N("Type the name of the directory users should create in their homes (without ~/) to get it available via http://www.yourserver.com/~user"),
pre => sub {
$o->{var}{user_dir} = get_user_dir();
- if ($o->{var}{user_dir} =~ /disabled/) {
+ if ($o->{var}{user_dir} =~ /disabled/) {
$o->{var}{user_dir} = 'public_html';
}
},
+ complete => sub {
+ if (!$o->{var}{user_dir}) {
+ $::in->ask_warn(N('Error'), N('You must specify a user directory.')); return 1;
+ } else { return 0; }; },
data => [
{ label => N("user http sub-directory: ~/"), help => N("Type the name of the directory users should create in their homes (without ~/) to get it available via http://www.yourserver.com/~user"), val => \$o->{var}{user_dir} },
],