Skip to content

Commit

Permalink
update inc/cpcheck.inc & inc/pureftpd.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed Oct 5, 2015
1 parent e23c1a3 commit 8d54a72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/cpcheck.inc
Expand Up @@ -194,6 +194,8 @@ pureftpdupdates() {
CHECKPFTPD_PASSIVEPORTS=$(grep '^PassivePortRange 3000 3050' /etc/pure-ftpd/pure-ftpd.conf)
if [ "$CHECKPFTPD_PASSIVEPORTS" ]; then
sed -i 's/^PassivePortRange 3000 3050/PassivePortRange 30001 50011/' /etc/pure-ftpd/pure-ftpd.conf
sed -i 's|MaxClientsNumber 50|MaxClientsNumber 500|' /etc/pure-ftpd/pure-ftpd.conf
sed -i 's|MaxClientsPerIP 8|MaxClientsPerIP 200|' /etc/pure-ftpd/pure-ftpd.conf
if [[ "$(ps aufx | grep pure-ftpd | grep -v grep)" ]]; then
service pure-ftpd restart
fi
Expand Down
2 changes: 2 additions & 0 deletions inc/pureftpd.inc
Expand Up @@ -18,6 +18,8 @@ pureftpinstall() {
sed -i 's/# TLS 1/TLS 2/' /etc/pure-ftpd/pure-ftpd.conf
sed -i 's/# PassivePortRange 30000 50000/PassivePortRange 30001 50011/' /etc/pure-ftpd/pure-ftpd.conf
sed -i 's/^PassivePortRange 3000 3050/PassivePortRange 30001 50011/' /etc/pure-ftpd/pure-ftpd.conf
sed -i 's|MaxClientsNumber 50|MaxClientsNumber 500|' /etc/pure-ftpd/pure-ftpd.conf
sed -i 's|MaxClientsPerIP 8|MaxClientsPerIP 200|' /etc/pure-ftpd/pure-ftpd.conf


# fix default file/directory permissions
Expand Down

0 comments on commit 8d54a72

Please sign in to comment.