mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-10 09:02:42 +08:00
fix: 解决安装包下载路径错误的问题 (#4954)
This commit is contained in:
parent
d5c75f4eee
commit
df53193f3f
1 changed files with 5 additions and 1 deletions
|
@ -96,7 +96,11 @@ func (u *UpgradeService) Upgrade(req dto.Upgrade) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
downloadPath := fmt.Sprintf("%s/%s/%s/release", global.CONF.System.RepoUrl, global.CONF.System.Mode, req.Version)
|
mode := global.CONF.System.Mode
|
||||||
|
if strings.Contains(req.Version, "beta") {
|
||||||
|
mode = "beta"
|
||||||
|
}
|
||||||
|
downloadPath := fmt.Sprintf("%s/%s/%s/release", global.CONF.System.RepoUrl, mode, req.Version)
|
||||||
fileName := fmt.Sprintf("1panel-%s-%s-%s.tar.gz", req.Version, "linux", itemArch)
|
fileName := fmt.Sprintf("1panel-%s-%s-%s.tar.gz", req.Version, "linux", itemArch)
|
||||||
_ = settingRepo.Update("SystemStatus", "Upgrading")
|
_ = settingRepo.Update("SystemStatus", "Upgrading")
|
||||||
go func() {
|
go func() {
|
||||||
|
|
Loading…
Reference in a new issue