lscpd for arm
This commit is contained in:
parent
08cce2e806
commit
233418068c
|
|
@ -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}'
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue