From bbf103704c420773bd198bbd1f23489eb48e61e5 Mon Sep 17 00:00:00 2001 From: "usman@cyberpersons.com" Date: Sat, 15 Apr 2023 14:44:42 +0500 Subject: [PATCH] bug fix: ftp issue on ubuntu22 --- install/installCyberPanel.py | 3 +++ plogical/test.py | 5 ----- plogical/upgrade.py | 3 +++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index de4a993c9..067d1ee53 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -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) diff --git a/plogical/test.py b/plogical/test.py index 3886ae749..e69de29bb 100644 --- a/plogical/test.py +++ b/plogical/test.py @@ -1,5 +0,0 @@ -import sys -from crypt import crypt, METHOD_SHA512 -from getpass import getpass - -print(crypt('hosting', METHOD_SHA512)) \ No newline at end of file diff --git a/plogical/upgrade.py b/plogical/upgrade.py index efcdda86c..2f6897147 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -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: