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