From 7dc84e7727732ea6b21bc19a8f20b1b36204ba37 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 11 Jul 2022 08:38:52 +0800 Subject: [PATCH] up --- plugins/mysql-apt/index.py | 4 ++-- plugins/mysql-yum/index.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index ce320047b..667be27ac 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -1810,8 +1810,8 @@ def installPreInspection(version): sysName = sys[0].strip().lower() sysId = sys_id[0].strip() - if not sysName in ('centos', 'ubuntu', 'debian'): - return '暂时仅支持centos,ubuntu,debian' + if not sysName in ('ubuntu', 'debian'): + return '仅支持ubuntu,debian' if sysName == 'centos': if version == '5.7' and int(sysId) > 7: diff --git a/plugins/mysql-yum/index.py b/plugins/mysql-yum/index.py index 30929043d..ac8c02799 100755 --- a/plugins/mysql-yum/index.py +++ b/plugins/mysql-yum/index.py @@ -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__":