|
|
|
@ -2306,17 +2306,9 @@ def installPreInspection(version): |
|
|
|
|
sysName = sys[0].strip().lower() |
|
|
|
|
sysId = sys_id[0].strip() |
|
|
|
|
|
|
|
|
|
if not sysName in ('debian', 'ubuntu'): |
|
|
|
|
return '仅支持debian,ubuntu' |
|
|
|
|
if not sysName in ('centos',): |
|
|
|
|
return '仅支持centos' |
|
|
|
|
|
|
|
|
|
if sysName == 'debian' and not sysId in('11', '10'): |
|
|
|
|
return 'debian支持10,11' |
|
|
|
|
|
|
|
|
|
if sysName == 'ubuntu' and version == '5.7' and not sysId in ('18.04'): |
|
|
|
|
return 'ubuntu支持18.04' |
|
|
|
|
|
|
|
|
|
if sysName == 'ubuntu' and version == '8.0' and not sysId in ('18.04', '20.04', '22.04'): |
|
|
|
|
return 'ubuntu支持18.04,20.04,22.04' |
|
|
|
|
return 'ok' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|