From cb86245a35b5658e8b944712ae4b032d3a5f328c Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 30 Oct 2023 16:02:58 +0800 Subject: [PATCH] Update index.py --- plugins/gitea/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gitea/index.py b/plugins/gitea/index.py index dcb2f9d59..fd20a565b 100755 --- a/plugins/gitea/index.py +++ b/plugins/gitea/index.py @@ -837,7 +837,7 @@ def projectScriptSelf_Create(): return mw.returnJson(False, '脚本已经存在!') mw.writeFile(abs_file, "#!/bin/bash\necho `date +'%Y-%m-%d %H:%M:%S'`\n") - + mw.execShell('chown -R www:www ' + abs_file) rdata = {} rdata['abs_file'] = abs_file return mw.returnJson(True, '创建文件成功!', rdata)