summaryrefslogtreecommitdiffstats
path: root/ftp_wizard
diff options
context:
space:
mode:
Diffstat (limited to 'ftp_wizard')
-rwxr-xr-xftp_wizard/Proftpd.pm13
1 files changed, 7 insertions, 6 deletions
diff --git a/ftp_wizard/Proftpd.pm b/ftp_wizard/Proftpd.pm
index c4bb6b0c..764a9cc4 100755
--- a/ftp_wizard/Proftpd.pm
+++ b/ftp_wizard/Proftpd.pm
@@ -36,7 +36,7 @@ my $o = {
wiz_ftp_anon => '',
wiz_ftp_home => ''
},
- needed_rpm => [ 'proftpd' ],
+ needed_rpm => [ 'proftpd', 'proftpd-anonymous' ],
defaultimage => "$ENV{__WIZ_HOME__}ftp_wizard/images/FTP.png"
};
@@ -103,12 +103,12 @@ sub true {
$val eq "1" || $val eq "\'1\'" || $val eq "\"1\"" ||
$val eq "true" || $val eq "\'true\'" || $val eq "\"true\"" and
return 1;
- 0;
+ 0
}
sub check_dir {
-d $o->{var}{wiz_dir} and return 10;
- 1;
+ 1
}
sub get_dir {
@@ -123,13 +123,13 @@ sub get_dir {
}
}
}
- return "";
+ ""
}
sub check {
$> and return 'must_be_root';
$wiz->{net}->is_dhcp() and return 'warning_dhcp';
- '';
+ ''
}
sub print_anonymous() {
@@ -203,7 +203,8 @@ sub do_it {
Deny from all
</Limit>
</Global>
-#</drakwizard>';
+#</drakwizard>
+';
close NEW;
}
else { # the known section (3 parameters ) is replaced with our needs