From bc78622b6b66675acf726c4c28d5731b8e3c21ae Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Mon, 5 Sep 2005 08:11:36 +0000 Subject: fix user_dir pb --- web_wizard/Apache.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'web_wizard') 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} }, ], -- cgit v1.2.1