fix: 调整任务创建的文件权限。
This commit is contained in:
parent
7506bca2ad
commit
7bdcd9a79f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user