diff --git a/install/install.py b/install/install.py index badb27359..a2b8bd29e 100755 --- a/install/install.py +++ b/install/install.py @@ -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' diff --git a/plogical/upgrade.py b/plogical/upgrade.py index cdf46bad8..5f01c27d8 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -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'