From 03f762e910c6b8c0ecde3ebfd2687fb39a9999d3 Mon Sep 17 00:00:00 2001 From: ayflying Date: Fri, 31 Oct 2025 10:05:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=8C=E5=90=8E=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=8F=AF=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/system/update.go | 2 ++ 1 file changed, 2 insertions(+) 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秒后开始重启...")