Skip to content

Commit

Permalink
Fix ProFTPd not actually being configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Sep 5, 2017
1 parent e6dd85d commit 204e017
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Virtualmin/Config/Plugin/ProFTPd.pm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ sub actions {
}

# Add to end of file, if not already there Include /etc/proftpd/conf.d
proftpd::save_directive('Include', '/etc/proftpd/conf.d', $conf, $conf);
proftpd::save_directive('Include', ['/etc/proftpd/conf.d'], $conf, $conf);

# generate TLS cert/key pair
my $hostname = `hostname -f`;
Expand Down Expand Up @@ -136,6 +136,11 @@ LoadModule mod_sftp.c
</VirtualHost>
EOF

# Write out virtualmin.config
open my $VMH, '>', '/etc/proftpd/conf.d/virtualmin.conf';
print $VMH $vmconf;
close $VMH;

# If SELinux is installed enable the right boolean
# For SFTP?
if (-x '/usr/sbin/setsebool') {
Expand Down

0 comments on commit 204e017

Please sign in to comment.