From 6d5b5efafa3d9ea3b76c2a5d3797c4d23c9e33e3 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 10 Jun 2024 20:55:31 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 232107c31..b71a9f91a 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3755,7 +3755,10 @@ def installPreInspection(version): def uninstallPreInspection(version): - stop(version) + data_dir = getDataDir() + if os.path.exists(data_dir): + stop(version) + if mw.isDebugMode(): return 'ok'