From 7bdcd9a79f78efee41d9673a97e1bf14a8c987c6 Mon Sep 17 00:00:00 2001 From: YuleiLan Date: Thu, 5 Nov 2020 16:52:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=9A=84=E6=96=87=E4=BB=B6=E6=9D=83=E9=99=90?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/process/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/process/task.go b/apis/process/task.go index 07ab537..3dd3b03 100644 --- a/apis/process/task.go +++ b/apis/process/task.go @@ -129,7 +129,7 @@ func CreateTask(c *gin.Context) { fileName = fileName + ".sh" } - err = ioutil.WriteFile(fileName, []byte(taskValue.Content), 0666) + err = ioutil.WriteFile(fileName, []byte(taskValue.Content), 0755) if err != nil { app.Error(c, -1, err, fmt.Sprintf("创建任务脚本失败: %v", err.Error())) return