更新完后需要修改文件可执行权限

This commit is contained in:
2025-10-31 10:05:10 +08:00
parent 84723248cd
commit 03f762e910

View File

@@ -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秒后开始重启...")