From 0962e5aab8b292f8aaa3930dd1bce11c2b14373d Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 30 Nov 2022 14:44:56 +0800 Subject: [PATCH] up --- plugins/gitea/index.py | 3 +++ plugins/gitea/js/gitea.js | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/gitea/index.py b/plugins/gitea/index.py index e6db81c5e..f13e7ef16 100755 --- a/plugins/gitea/index.py +++ b/plugins/gitea/index.py @@ -601,11 +601,13 @@ def projectScriptLoad(): if not os.path.exists(path + '/custom_hooks'): mw.execShell('mkdir -p ' + path + '/custom_hooks') + mw.execShell('chown -R www:www ' + path + '/custom_hooks') pct_content = mw.readFile(post_receive_tpl) pct_content = pct_content.replace('{$PATH}', path + '/custom_hooks') mw.writeFile(post_receive, pct_content) mw.execShell('chmod 777 ' + post_receive) + mw.execShell('chown -R www:www ' + post_receive) commit_tpl = getPluginDir() + '/hook/commit.tpl' commit = path + '/custom_hooks/commit' @@ -622,6 +624,7 @@ def projectScriptLoad(): cc_content = cc_content.replace('{$WEB_ROOT}', mw.getWwwDir()) mw.writeFile(commit, cc_content) mw.execShell('chmod 777 ' + commit) + mw.execShell('chown -R www:www ' + commit) return 'ok' diff --git a/plugins/gitea/js/gitea.js b/plugins/gitea/js/gitea.js index 232518c53..ffdab52e1 100755 --- a/plugins/gitea/js/gitea.js +++ b/plugins/gitea/js/gitea.js @@ -276,10 +276,9 @@ function projectScriptLoad(user,name){ return; } - layer.msg('加载成功!',{icon:1,time:2000,shade: [0.3, '#000']}); - setTimeout(function(){ + showMsg('加载成功!',function(){ userProjectList(1); - }, 2000); + },{icon:1,time:2000,shade: [0.3, '#000']},2000); }); }