bug fix: ftp issue on ubuntu22

This commit is contained in:
usman@cyberpersons.com
2023-04-15 14:44:42 +05:00
parent 9ddf7f9378
commit bbf103704c
3 changed files with 6 additions and 5 deletions

View File

@@ -511,6 +511,9 @@ class InstallCyberPanel:
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)
command = "systemctl restart pure-ftpd-mysql.service"
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
InstallCyberPanel.stdOut("PureFTPD configured!", 1)

View File

@@ -1,5 +0,0 @@
import sys
from crypt import crypt, METHOD_SHA512
from getpass import getpass
print(crypt('hosting', METHOD_SHA512))

View File

@@ -1098,6 +1098,9 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout';
command = "sed -i 's/MYSQLCrypt md5/MYSQLCrypt crypt/g' /etc/pure-ftpd/db/mysql.conf"
Upgrade.executioner(command, command, 1)
command = "systemctl restart pure-ftpd-mysql.service"
Upgrade.executioner(command, command, 1)
try:
connection.close()
except: