mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 07:16:15 +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:
@@ -167,8 +167,9 @@ class ProcessUtilities(multi.Thread):
|
||||
distroPath = '/etc/lsb-release'
|
||||
|
||||
if os.path.exists(distroPath):
|
||||
|
||||
## this is check only
|
||||
if open(distroPath, 'r').read().find('22.04'):
|
||||
if open(distroPath, 'r').read().find('22.04') > -1:
|
||||
ProcessUtilities.ubuntu22Check = 1
|
||||
|
||||
if open(distroPath, 'r').read().find('20.04') > -1 or open(distroPath, 'r').read().find('22.04'):
|
||||
|
||||
Reference in New Issue
Block a user