From 3b293e31630e2582f77186efdbe2b4b4637444f4 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 4 Sep 2024 13:09:20 +0800 Subject: [PATCH] Update index.py --- plugins/gitea/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/gitea/index.py b/plugins/gitea/index.py index c50262b9b..a617719a2 100755 --- a/plugins/gitea/index.py +++ b/plugins/gitea/index.py @@ -764,8 +764,11 @@ def projectScriptRun(): if not os.path.exists(commit_sh): return mw.returnJson(False, '脚本文件不存在!') + repo_dir = mw.getServerDir()+'/git/'+ args['name'] + mw.execShell(script_run) mw.execShell('chown -R www:www ' + commit_log) + mw.execShell('chown -R www:www ' + repo_dir) return mw.returnJson(True, '脚本文件执行成功,观察日志!')