We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9954d8f commit 51f8dc9Copy full SHA for 51f8dc9
install/dist/lib/gentoo.lib.php
@@ -506,7 +506,13 @@ public function configure_pureftpd()
506
*/
507
508
509
- $content = preg_replace('/MISC_OTHER="[^"]+"/', 'MISC_OTHER="-b -A -E -Z -D -H -O clf:'.$logdir.'/transfer.log"', $content);
+ //* Enable TLS if certificate file exists
510
+ $enable_tls = '';
511
+ if(file_exists('/etc/ssl/private/pure-ftpd.pem')) {
512
+ $enable_tls = ' -Y 1';
513
+ }
514
+
515
+ $content = preg_replace('/MISC_OTHER="[^"]+"/', 'MISC_OTHER="-b -A -E -Z -D -H -O clf:'.$logdir.'/transfer.log'.$enable_tls.'"', $content);
516
517
$this->write_config_file($conf['pureftpd']['config_file'], $content);
518
}
0 commit comments