From 91919426f4fc5b63eb371f56591757f46cf90bb3 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 30 Oct 2023 16:06:20 +0800 Subject: [PATCH] Update index.py --- plugins/gitea/index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/gitea/index.py b/plugins/gitea/index.py index 51bf6d5f3..4ef5f4f84 100755 --- a/plugins/gitea/index.py +++ b/plugins/gitea/index.py @@ -781,10 +781,12 @@ def projectScriptSelf(): self_path = custom_hooks + '/self' if not os.path.exists(self_path): os.mkdir(self_path) + mw.execShell("chown -R www:www " + self_path) self_logs_path = custom_hooks + '/self_logs' if not os.path.exists(self_logs_path): os.mkdir(self_logs_path) + mw.execShell("chown -R www:www " + self_logs_path) self_hook_file = custom_hooks + '/self_hook.sh' self_hook_exist = False