Update index.py

This commit is contained in:
Mr Chen
2024-07-20 00:46:41 +08:00
parent de402e9996
commit 662e983f01
+5 -11
View File
@@ -3461,22 +3461,16 @@ def fullSync(version=''):
def installPreInspection(version):
cmd = "cat /etc/*-release | grep PRETTY_NAME |awk -F = '{print $2}' | awk -F '\"' '{print $2}'| awk '{print $1}'"
sys = mw.execShell(cmd)
sys = mw.execShell(
"cat /etc/*-release | grep PRETTY_NAME |awk -F = '{print $2}' | awk -F '\"' '{print $2}'| awk '{print $1}'")
if sys[1] != '':
return '不支持改系统'
sys_id = mw.execShell(
"cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F '\"' '{print $2}'")
cmd = "cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F '\"' '{print $2}'"
sys_id = mw.execShell(cmd)
sysName = sys[0].strip().lower()
sysId = sys_id[0].strip()
if not sysName in ['centos']:
if not sysName in ['centos','almalinux']:
return '仅支持centos'
if (sysName == 'centos' and version == '5.7' and not sysId in('7',)):