Update index.py

pull/257/head
midoks 3 years ago
parent b26d8a6224
commit 45e797024a
  1. 12
      plugins/mysql-yum/index.py

@ -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'

Loading…
Cancel
Save