From 0af1308b7dea5099e330c721d9def047cd210b94 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 10 Jun 2024 20:30:29 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-apt/index.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index ecdd5da00..cb272f983 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -3495,7 +3495,11 @@ def installPreInspection(version): def uninstallPreInspection(version): - stop(version) + + data_dir = getServerDir()+'/data/mysql' + if os.path.exists(data_dir): + stop(version) + if mw.isDebugMode(): return 'ok'