passive port range fix for ubuntu

This commit is contained in:
Usman Nasir
2020-02-03 17:50:22 +05:00
parent 829c8c8b59
commit d2e5601267

View File

@@ -443,6 +443,9 @@ class InstallCyberPanel:
command = 'echo %s > /etc/pure-ftpd/conf/ForcePassiveIP' % (self.publicip)
subprocess.call(command, shell=True)
command = 'echo "40110 40210" > /etc/pure-ftpd/conf/PassivePortRange'
subprocess.call(command, shell=True)
command = 'systemctl restart pure-ftpd-mysql.service'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)