This commit is contained in:
midoks
2022-07-11 08:38:52 +08:00
parent cc6fa81f07
commit 7dc84e7727
2 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -1811,13 +1811,13 @@ def installPreInspection(version):
sysId = sys_id[0].strip()
if not sysName in ('centos', 'ubuntu', 'debian'):
return '暂时仅支持centos,ubuntu,debian'
return '暂时仅支持centos'
if version == '5.7' and int(sysId) > 7:
return 'MySQL[' + version + ']不支持安装在ceonts[' + sysId + ']'
if version == '8.0' and int(sysId) < 6:
return 'MySQL[' + version + ']不支持安装在ceonts[' + sysId + ']'
if sysName == 'centos':
if version == '5.7' and int(sysId) > 7:
return 'MySQL[' + version + ']不支持安装在ceonts[' + sysId + ']'
if version == '8.0' and int(sysId) < 6:
return 'MySQL[' + version + ']不支持安装在ceonts[' + sysId + ']'
return 'ok'
if __name__ == "__main__":