From 0aaa05650a50d68087f8ffd9686be956b3df620f Mon Sep 17 00:00:00 2001 From: "usman@cyberpersons.com" Date: Sat, 3 Jun 2023 01:29:59 +0500 Subject: [PATCH] lscpd for arm --- install/install.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/install/install.py b/install/install.py index 5ed8efb8c..bd3388187 100755 --- a/install/install.py +++ b/install/install.py @@ -1549,16 +1549,13 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout'; ### - if subprocess.check_output('uname -a').decode("utf-8").find("aarch64") == -1: - lscpdPath = '/usr/local/lscp/bin/lscpd' + lscpdPath = '/usr/local/lscp/bin/lscpd' - 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' - else: - lscpdSelection = 'lscpd.aarch64' + 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' command = f'cp -f /usr/local/CyberCP/{lscpdSelection} /usr/local/lscp/bin/{lscpdSelection}'