diff --git a/backend/app/service/upgrade.go b/backend/app/service/upgrade.go index c542b5b2b..0632f5554 100644 --- a/backend/app/service/upgrade.go +++ b/backend/app/service/upgrade.go @@ -96,7 +96,11 @@ func (u *UpgradeService) Upgrade(req dto.Upgrade) error { 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) _ = settingRepo.Update("SystemStatus", "Upgrading") go func() {