bug fix: use different lscpd versions according to os detection

This commit is contained in:
Usman Nasir
2022-10-06 14:19:28 +05:00
parent 06b2834a28
commit 8dd7c56050
2 changed files with 4 additions and 2 deletions

View File

@@ -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'

View File

@@ -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'