mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user