diff --git a/internal/logic/system/update.go b/internal/logic/system/update.go index 5dc0db1..01fd076 100644 --- a/internal/logic/system/update.go +++ b/internal/logic/system/update.go @@ -78,6 +78,8 @@ func (s *sSystem) Update(ctx context.Context, gzFile string) (err error) { if err != nil { return } + //修改文件权限为755 + err = gfile.Chmod(runFile, 0755) go func() { log.Println("5秒后开始重启...")