bug fix: ftp issue on ubuntu22

This commit is contained in:
usman@cyberpersons.com
2023-04-15 14:42:35 +05:00
parent 950fccad22
commit 9ddf7f9378
5 changed files with 48 additions and 7 deletions

View File

@@ -504,6 +504,14 @@ class InstallCyberPanel:
command = 'systemctl restart pure-ftpd-mysql.service'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
if get_Ubuntu_release() > 20:
### change mysql md5 to crypt
command = "sed -i 's/MYSQLCrypt md5/MYSQLCrypt crypt/g' /etc/pure-ftpd/db/mysql.conf"
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
InstallCyberPanel.stdOut("PureFTPD configured!", 1)
except IOError as msg: