From c5bb8dab8c6d1bd1b42356cc1c5ae3c8a30d10bb Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 17 Apr 2024 15:28:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E5=BF=AB=E7=85=A7=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#4547)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/snapshot_create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/service/snapshot_create.go b/backend/app/service/snapshot_create.go index bbdac3077..5ea82adb3 100644 --- a/backend/app/service/snapshot_create.go +++ b/backend/app/service/snapshot_create.go @@ -43,7 +43,7 @@ func snapPanel(snap snapHelper, targetDir string) { defer snap.Wg.Done() _ = snapshotRepo.UpdateStatus(snap.Status.ID, map[string]interface{}{"panel": constant.Running}) status := constant.StatusDone - if err := common.CopyFile("/usr/local/bin/1panel", targetDir); err != nil { + if err := common.CopyFile("/usr/local/bin/1panel", path.Join(targetDir, "1panel")); err != nil { status = err.Error() }