mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-09 15:06:37 +08:00
fix: 解决复制导致的快照失败问题 (#4547)
This commit is contained in:
parent
f1421ba7f9
commit
c5bb8dab8c
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ func snapPanel(snap snapHelper, targetDir string) {
|
||||||
defer snap.Wg.Done()
|
defer snap.Wg.Done()
|
||||||
_ = snapshotRepo.UpdateStatus(snap.Status.ID, map[string]interface{}{"panel": constant.Running})
|
_ = snapshotRepo.UpdateStatus(snap.Status.ID, map[string]interface{}{"panel": constant.Running})
|
||||||
status := constant.StatusDone
|
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()
|
status = err.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue