From b1062b916b5598e766771240e874054758405c9a Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 5 Feb 2021 21:44:26 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index fa49fd719..b3e1f4c7b 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -1549,8 +1549,9 @@ def doFullSync(): if mw.getOs() == 'darwin': user = mw.execShell( "who | sed -n '2, 1p' |awk '{print $1}'")[0].strip() - SSH_PRIVATE_KEY = '/User/' + user + '/.ssh/id_rsa' + SSH_PRIVATE_KEY = '/Users/' + user + '/.ssh/id_rsa' + print(SSH_PRIVATE_KEY) if not os.path.exists(SSH_PRIVATE_KEY): status_data['code'] = 0 status_data['msg'] = '需要配置免登录...'