From 51aa028f97b374a9db34e7d4ed237a9d559c6d58 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 10 Jan 2023 17:03:36 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-yum/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql-yum/index.py b/plugins/mysql-yum/index.py index 92440715d..9c128a49a 100755 --- a/plugins/mysql-yum/index.py +++ b/plugins/mysql-yum/index.py @@ -501,7 +501,7 @@ def setMyDbPos(version=''): start(version) result = mw.execShell( - 'ps aux|grep mysqld| grep -v grep|grep -v python') + 'ps aux|grep "mysql-apt/bin/usr/sbin/mysqld"| grep -v grep|grep -v python') if len(result[0]) > 10: mw.writeFile('data/datadir.pl', t_datadir) return mw.returnJson(True, '存储目录迁移成功!')