mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-19 14:02:05 +01:00
bug fix in ftp creation for ubuntu 20: https://community.cyberpanel.net/t/bug-ftp-create-account-error/42688
This commit is contained in:
@@ -505,7 +505,7 @@ class InstallCyberPanel:
|
||||
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
||||
|
||||
|
||||
if int(get_Ubuntu_release()) > 20:
|
||||
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"
|
||||
|
||||
@@ -1134,6 +1134,12 @@ CREATE TABLE `websiteFunctions_backupsv2` (`id` integer AUTO_INCREMENT NOT NULL
|
||||
|
||||
### update ftp issue for ubuntu 22
|
||||
|
||||
try:
|
||||
cursor.execute(
|
||||
'ALTER TABLE `users` CHANGE `Password` `Password` VARCHAR(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL; ')
|
||||
except:
|
||||
pass
|
||||
|
||||
if Upgrade.FindOperatingSytem() == Ubuntu22:
|
||||
|
||||
command = "sed -i 's/MYSQLCrypt md5/MYSQLCrypt crypt/g' /etc/pure-ftpd/db/mysql.conf"
|
||||
|
||||
Reference in New Issue
Block a user