Skip to content

Commit 902096f

Browse files
committed
update ftp config file
1 parent cd872a8 commit 902096f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

install/installCyberPanel.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,18 @@ def installPureFTPDConfigurations(self, mysql):
431431
command = 'echo "40110 40210" > /etc/pure-ftpd/conf/PassivePortRange'
432432
subprocess.call(command, shell=True)
433433

434+
command = 'echo "no" > /etc/pure-ftpd/conf/UnixAuthentication'
435+
subprocess.call(command, shell=True)
436+
437+
command = 'echo "/etc/pure-ftpd/db/mysql.conf" > /etc/pure-ftpd/conf/MySQLConfigFile'
438+
subprocess.call(command, shell=True)
439+
440+
command = 'ln -s /etc/pure-ftpd/conf/MySQLConfigFile /etc/pure-ftpd/auth/30mysql'
441+
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
442+
443+
command = 'ln -s /etc/pure-ftpd/conf/UnixAuthentication /etc/pure-ftpd/auth/65unix'
444+
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
445+
434446
command = 'systemctl restart pure-ftpd-mysql.service'
435447
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
436448

0 commit comments

Comments
 (0)