diff options
Diffstat (limited to 'web_wizard/Apache.pm')
-rwxr-xr-x | web_wizard/Apache.pm | 6 |
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} }, ], |