From 67c899fc8485b2e06f14d40e3dc6377f6daa1133 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 5 Aug 2023 00:43:06 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 25aea89ad..0d3f9993d 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -167,7 +167,6 @@ def pMysqlDb(): def makeInitRsaKey(version=''): datadir = getServerDir() + "/data" - mysql_pem = datadir + "/mysql.pem" if not os.path.exists(mysql_pem): rdata = mw.execShell( @@ -575,11 +574,11 @@ def my8cmd(version, method): def appCMD(version, action): + makeInitRsaKey(version) if version == '8.0' or version == '5.7': status = my8cmd(version, action) else: status = myOp(version, action) - makeInitRsaKey(version) return status