pull/221/head
midoks 3 years ago
parent aade0ccd98
commit 0871fa1763
  1. 8
      plugins/pureftp/conf/pure-ftpd.conf
  2. 3
      plugins/pureftp/index.py
  3. 2
      plugins/pureftp/init.d/pure-config.pl
  4. 2
      plugins/pureftp/init.d/pure-ftpd.tpl

@ -25,5 +25,11 @@ AutoRename no
AnonymousCantUpload no
MaxDiskUsage 99
CustomerProof yes
PIDFile /var/run/pure-ftpd.pid
PassivePortRange 48000 50000
PIDFile {$SERVER_PATH}/pureftp/etc/pure-ftpd.pid
PureDB {$SERVER_PATH}/pureftp/etc/pureftpd.pdb
VerboseLog yes
#AltLog clf:{$SERVER_PATH}/pureftp/pureftpd.log
AllowOverwrite on
AllowStoreRestart on

@ -110,7 +110,8 @@ def initDreplace():
pureFtpdConfigBak = getServerDir() + "/etc/pure-ftpd.bak.conf"
pureFtpdConfigTpl = getPluginDir() + "/conf/pure-ftpd.conf"
if not os.path.exists(pureFtpdConfigBak):
if not os.path.exists(pureFtpdConfigBak) or not os.path.exists(pureFtpdConfig):
if os.path.exists(pureFtpdConfig):
shutil.copyfile(pureFtpdConfig, pureFtpdConfigBak)
content = mw.readFile(pureFtpdConfigTpl)
content = contentReplace(content)

@ -10,7 +10,7 @@ my ($conffile, @flg) = @ARGV;
my $PUREFTPD;
-x && ($PUREFTPD=$_, last) for qw(
{$SERVER_PATH}/pureftp/sbin/pure-ftpd
/www/server/pure-ftpd/sbin/pure-ftpd
/www/server/pureftp/sbin/pure-ftpd
/www/server/pureftpd/sbin/pure-ftpd
/www/server/sbin/pure-ftpd
/usr/sbin/pure-ftpd

@ -17,7 +17,7 @@
# Pure-FTPd Settings
PURE_PERL="{$SERVER_PATH}/pureftp/sbin/pure-config.pl"
PURE_CONF="{$SERVER_PATH}/pureftp/etc/pure-ftpd.conf"
PURE_PID="/var/run/pure-ftpd.pid"
PURE_PID="{$SERVER_PATH}/pureftp/etc/pure-ftpd.pid"
RETVAL=0
prog="Pure-FTPd"

Loading…
Cancel
Save