From 2ccb45bfcb96073dd77e7cb9f71113f13ecedc6d Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 10 Jun 2024 13:58:40 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-yum/index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/mysql-yum/index.py b/plugins/mysql-yum/index.py index 5a2e4e779..d5ac63e26 100755 --- a/plugins/mysql-yum/index.py +++ b/plugins/mysql-yum/index.py @@ -3400,6 +3400,8 @@ def fullSync(version=''): def installPreInspection(version): + + sys = mw.execShell( "cat /etc/*-release | grep PRETTY_NAME |awk -F = '{print $2}' | awk -F '\"' '{print $2}'| awk '{print $1}'") @@ -3418,7 +3420,8 @@ def installPreInspection(version): if (sysName == 'centos' and version == '5.7' and not sysId in('7',)): return 'mysql5.7 仅支持centos7' - if (sysName == 'centos' and version == '8.0' and not sysId in ('7', '8', '9',)): + mdb8 = ['8.0','8.1','8.2','8.3','8.4'] + if (sysName == 'centos' and mw.inArray(mdb8, version) and not sysId in ('7', '8', '9',)): return 'mysql8.0 仅支持centos7,8,9' return 'ok'