mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-18 03:01:01 +01:00
bug fix: use different lscpd versions according to os detection
This commit is contained in:
@@ -1457,9 +1457,10 @@ autocreate_system_folders = On
|
||||
|
||||
lscpdPath = '/usr/local/lscp/bin/lscpd'
|
||||
|
||||
result = open('/etc/lsb-release', 'r').read()
|
||||
|
||||
lscpdSelection = 'lscpd-0.3.1'
|
||||
if os.path.exists('/etc/lsb-release'):
|
||||
result = open('/etc/lsb-release', 'r').read()
|
||||
if result.find('22.04') > -1:
|
||||
lscpdSelection = 'lscpd.0.4.0'
|
||||
|
||||
|
||||
@@ -1992,10 +1992,11 @@ autocreate_system_folders = On
|
||||
if os.path.exists(lscpdPath):
|
||||
os.remove(lscpdPath)
|
||||
|
||||
result = open(Upgrade.UbuntuPath, 'r').read()
|
||||
|
||||
|
||||
lscpdSelection = 'lscpd-0.3.1'
|
||||
if os.path.exists(Upgrade.UbuntuPath):
|
||||
result = open(Upgrade.UbuntuPath, 'r').read()
|
||||
if result.find('22.04') > -1:
|
||||
lscpdSelection = 'lscpd.0.4.0'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user