bug fix: https://github.com/usmannasir/cyberpanel/issues/1237 and https://community.cyberpanel.net/t/arm64-slow-reboot-waiting-for-process-lscpd/52280
This commit is contained in:
parent
b7e642de64
commit
59a5c764e6
|
|
@ -1572,21 +1572,21 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout';
|
|||
result = subprocess.run('uname -a', capture_output=True, text=True, shell=True)
|
||||
|
||||
if result.stdout.find('aarch64') == -1:
|
||||
lscpdSelection = 'lscpd-0.4.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.1'
|
||||
lscpdSelection = 'lscpd.0.4.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.1'
|
||||
else:
|
||||
lscpdSelection = 'lscpd.aarch64.0.4.1'
|
||||
|
||||
except:
|
||||
|
||||
lscpdSelection = 'lscpd-0.4.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.1'
|
||||
lscpdSelection = 'lscpd.0.4.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.1'
|
||||
|
||||
|
||||
command = f'cp -f /usr/local/CyberCP/{lscpdSelection} /usr/local/lscp/bin/{lscpdSelection}'
|
||||
|
|
|
|||
|
|
@ -2240,21 +2240,21 @@ CREATE TABLE `websiteFunctions_backupsv2` (`id` integer AUTO_INCREMENT NOT NULL
|
|||
result = subprocess.run('uname -a', capture_output=True, text=True, shell=True)
|
||||
|
||||
if result.stdout.find('aarch64') == -1:
|
||||
lscpdSelection = 'lscpd-0.4.1'
|
||||
if os.path.exists(Upgrade.UbuntuPath):
|
||||
result = open(Upgrade.UbuntuPath, 'r').read()
|
||||
if result.find('22.04') > -1:
|
||||
lscpdSelection = 'lscpd.0.4.1'
|
||||
lscpdSelection = 'lscpd.0.4.1'
|
||||
# if os.path.exists(Upgrade.UbuntuPath):
|
||||
# result = open(Upgrade.UbuntuPath, 'r').read()
|
||||
# if result.find('22.04') > -1:
|
||||
# lscpdSelection = 'lscpd.0.4.1'
|
||||
else:
|
||||
lscpdSelection = 'lscpd.aarch64.0.4.1'
|
||||
|
||||
except:
|
||||
|
||||
lscpdSelection = 'lscpd-0.4.1'
|
||||
if os.path.exists(Upgrade.UbuntuPath):
|
||||
result = open(Upgrade.UbuntuPath, 'r').read()
|
||||
if result.find('22.04') > -1:
|
||||
lscpdSelection = 'lscpd.0.4.1'
|
||||
lscpdSelection = 'lscpd.0.4.1'
|
||||
# if os.path.exists(Upgrade.UbuntuPath):
|
||||
# result = open(Upgrade.UbuntuPath, 'r').read()
|
||||
# if result.find('22.04') > -1:
|
||||
# lscpdSelection = 'lscpd.0.4.1'
|
||||
|
||||
command = f'cp -f /usr/local/CyberCP/{lscpdSelection} /usr/local/lscp/bin/{lscpdSelection}'
|
||||
Upgrade.executioner(command, command, 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue