This commit is contained in:
usman@cyberpersons.com
2023-05-09 15:23:26 +05:00
parent 2b7c8104b4
commit 2d534a97a4
4 changed files with 4 additions and 8 deletions

View File

@@ -505,7 +505,7 @@ class InstallCyberPanel:
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
if get_Ubuntu_release() > 20: if int(get_Ubuntu_release()) > 20:
### change mysql md5 to crypt ### change mysql md5 to crypt
command = "sed -i 's/MYSQLCrypt md5/MYSQLCrypt crypt/g' /etc/pure-ftpd/db/mysql.conf" command = "sed -i 's/MYSQLCrypt md5/MYSQLCrypt crypt/g' /etc/pure-ftpd/db/mysql.conf"

View File

@@ -155,6 +155,7 @@ class FTPUtilities:
admin = Administrator.objects.get(userName=owner) admin = Administrator.objects.get(userName=owner)
if api == '0': if api == '0':
userName = admin.userName + "_" + userName userName = admin.userName + "_" + userName

View File

@@ -167,8 +167,9 @@ class ProcessUtilities(multi.Thread):
distroPath = '/etc/lsb-release' distroPath = '/etc/lsb-release'
if os.path.exists(distroPath): if os.path.exists(distroPath):
## this is check only ## this is check only
if open(distroPath, 'r').read().find('22.04'): if open(distroPath, 'r').read().find('22.04') > -1:
ProcessUtilities.ubuntu22Check = 1 ProcessUtilities.ubuntu22Check = 1
if open(distroPath, 'r').read().find('20.04') > -1 or open(distroPath, 'r').read().find('22.04'): if open(distroPath, 'r').read().find('20.04') > -1 or open(distroPath, 'r').read().find('22.04'):

View File

@@ -1136,12 +1136,6 @@ CREATE TABLE `websiteFunctions_backupsv2` (`id` integer AUTO_INCREMENT NOT NULL
if Upgrade.FindOperatingSytem() == Ubuntu22: if Upgrade.FindOperatingSytem() == Ubuntu22:
try:
cursor.execute(
'ALTER TABLE `users` CHANGE `Password` `Password` VARCHAR(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL; ')
except:
pass
command = "sed -i 's/MYSQLCrypt md5/MYSQLCrypt crypt/g' /etc/pure-ftpd/db/mysql.conf" command = "sed -i 's/MYSQLCrypt md5/MYSQLCrypt crypt/g' /etc/pure-ftpd/db/mysql.conf"
Upgrade.executioner(command, command, 1) Upgrade.executioner(command, command, 1)