diff --git a/install/install.py b/install/install.py index bd3388187..5ed8efb8c 100755 --- a/install/install.py +++ b/install/install.py @@ -1549,13 +1549,16 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout'; ### - lscpdPath = '/usr/local/lscp/bin/lscpd' + if subprocess.check_output('uname -a').decode("utf-8").find("aarch64") == -1: + 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' + 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' command = f'cp -f /usr/local/CyberCP/{lscpdSelection} /usr/local/lscp/bin/{lscpdSelection}' diff --git a/lscpd.aarch64 b/lscpd.aarch64 new file mode 100644 index 000000000..7279af547 Binary files /dev/null and b/lscpd.aarch64 differ