mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-16 12:32:05 +01:00
bug fix: use different lscpd versions according to os detection
This commit is contained in:
@@ -1459,8 +1459,9 @@ autocreate_system_folders = On
|
||||
|
||||
result = open('/etc/lsb-release', 'r').read()
|
||||
lscpdSelection = 'lscpd-0.3.1'
|
||||
if result.find('22.04') > -1:
|
||||
lscpdSelection = 'lscpd.0.4.0'
|
||||
if os.path.exists('/etc/lsb-release'):
|
||||
if result.find('22.04') > -1:
|
||||
lscpdSelection = 'lscpd.0.4.0'
|
||||
|
||||
|
||||
command = f'cp -f /usr/local/CyberCP/{lscpdSelection} /usr/local/lscp/bin/{lscpdSelection}'
|
||||
|
||||
@@ -1995,8 +1995,9 @@ autocreate_system_folders = On
|
||||
result = open(Upgrade.UbuntuPath, 'r').read()
|
||||
|
||||
lscpdSelection = 'lscpd-0.3.1'
|
||||
if result.find('22.04') > -1:
|
||||
lscpdSelection = 'lscpd.0.4.0'
|
||||
if os.path.exists(Upgrade.UbuntuPath):
|
||||
if result.find('22.04') > -1:
|
||||
lscpdSelection = 'lscpd.0.4.0'
|
||||
|
||||
command = f'cp -f /usr/local/CyberCP/{lscpdSelection} /usr/local/lscp/bin/{lscpdSelection}'
|
||||
Upgrade.executioner(command, command, 0)
|
||||
|
||||
Reference in New Issue
Block a user