summaryrefslogtreecommitdiffstats
path: root/ftp_wizard
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-11-05 16:57:20 +0000
committerFlorent Villard <warly@mandriva.com>2003-11-05 16:57:20 +0000
commit79843e9711f1e21823df989c9200031514e8e0fc (patch)
tree5e5efa466486b82db0b63b072e517a5e0d82f749 /ftp_wizard
parent77f1ad96d339974fe8da213ed6ab7e6956e7409c (diff)
downloaddrakwizard-79843e9711f1e21823df989c9200031514e8e0fc.tar
drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.tar.gz
drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.tar.bz2
drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.tar.xz
drakwizard-79843e9711f1e21823df989c9200031514e8e0fc.zip
fix ftp anonymous mode
fix ntp wizard fix bind config
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