From 757e20c75cfd97257f15866f490c6e11a1a9ff30 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 10 Jun 2024 18:57:08 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-apt/index.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index f6843e8e6..ec106edc5 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -398,6 +398,8 @@ def getShowLogFile(): tmp = re.search(rep, content) return tmp.groups()[0].strip() +def getMdb8Ver(): + return ['8.0','8.1','8.2','8.3','8.4'] def pGetDbUser(): if mw.isAppleSystem(): @@ -3463,6 +3465,7 @@ def fullSync(version=''): def installPreInspection(version): + cmd = "cat /etc/*-release | grep PRETTY_NAME |awk -F = '{print $2}' | awk -F '\"' '{print $2}'| awk '{print $1}'" sys = mw.execShell(cmd) @@ -3474,6 +3477,7 @@ def installPreInspection(version): sysName = sys[0].strip().lower() sysId = sys_id[0].strip() + mdb8 = getMdb8Ver() if not sysName in ('debian', 'ubuntu'): return '仅支持debian,ubuntu'