summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xftp_wizard/Proftpd.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/ftp_wizard/Proftpd.pm b/ftp_wizard/Proftpd.pm
index d322aace..24f867ae 100755
--- a/ftp_wizard/Proftpd.pm
+++ b/ftp_wizard/Proftpd.pm
@@ -306,12 +306,7 @@ sub do_it {
substInFile { s/^ServerName.*/ServerName $o->{var}{wiz_server_name}/ } $file;
substInFile { s/^Port.*/Port $o->{var}{wiz_port}/ } $file;
- my $data;
- if ($o->{var}{wiz_default_root} == 1) {
- $data = "DefaultRoot ~";
- } else {
- $data = "";
- }
+ my $data = $o->{var}{wiz_default_root} == 1 ? "DefaultRoot ~" : '';
if (any { /^DefaultRoot/ } cat_($file)) {
substInFile { s/DefaultRoot.*/$data/ } $file;
} else {