pull/221/head
midoks 3 years ago
parent aade0ccd98
commit 0871fa1763
  1. 8
      plugins/pureftp/conf/pure-ftpd.conf
  2. 5
      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 AnonymousCantUpload no
MaxDiskUsage 99 MaxDiskUsage 99
CustomerProof yes 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 PureDB {$SERVER_PATH}/pureftp/etc/pureftpd.pdb
VerboseLog yes
#AltLog clf:{$SERVER_PATH}/pureftp/pureftpd.log
AllowOverwrite on
AllowStoreRestart on

@ -110,8 +110,9 @@ def initDreplace():
pureFtpdConfigBak = getServerDir() + "/etc/pure-ftpd.bak.conf" pureFtpdConfigBak = getServerDir() + "/etc/pure-ftpd.bak.conf"
pureFtpdConfigTpl = getPluginDir() + "/conf/pure-ftpd.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):
shutil.copyfile(pureFtpdConfig, pureFtpdConfigBak) if os.path.exists(pureFtpdConfig):
shutil.copyfile(pureFtpdConfig, pureFtpdConfigBak)
content = mw.readFile(pureFtpdConfigTpl) content = mw.readFile(pureFtpdConfigTpl)
content = contentReplace(content) content = contentReplace(content)
mw.writeFile(pureFtpdConfig, content) mw.writeFile(pureFtpdConfig, content)

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

@ -17,7 +17,7 @@
# Pure-FTPd Settings # Pure-FTPd Settings
PURE_PERL="{$SERVER_PATH}/pureftp/sbin/pure-config.pl" PURE_PERL="{$SERVER_PATH}/pureftp/sbin/pure-config.pl"
PURE_CONF="{$SERVER_PATH}/pureftp/etc/pure-ftpd.conf" 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 RETVAL=0
prog="Pure-FTPd" prog="Pure-FTPd"

Loading…
Cancel
Save