From 9c1b7e4ed4f9526edfb731339ed1f8f51e394c1e Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 12 Jun 2022 16:03:27 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index e55fc212a..d54d6db75 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -378,8 +378,8 @@ def my8cmd(version, method): if method == "stop": mw.execShell(cmd) return "ok" - subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True, - bufsize=4096, stderr=subprocess.PIPE) + subprocess.run(cmd, stdout=subprocess.PIPE, shell=True, + bufsize=4096, stderr=subprocess.PIPE) return 'ok' except Exception as e: print(e)