Skip to content

Commit

Permalink
fix: 解决应用名称存在大写导致无法升级的问题 (1Panel-dev#4987)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 authored May 12, 2024
1 parent 95bbf4e commit 79c2ba2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/app/service/app_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ func upgradeInstall(installID uint, detailID uint, backup, pullImage bool) error
upErr error
backupFile string
)
global.LOG.Infof(i18n.GetMsgByKey("UpgradeAppStart"))
global.LOG.Infof(i18n.GetMsgWithName("UpgradeAppStart", install.Name, nil))
if backup {
backupRecord, err := NewIBackupService().AppBackup(dto.CommonBackup{Name: install.App.Key, DetailName: install.Name})
if err == nil {
Expand Down Expand Up @@ -587,7 +587,8 @@ func upgradeInstall(installID uint, detailID uint, backup, pullImage bool) error
}

if pullImage {
images, err := composeV2.GetDockerComposeImages(install.Name, content, []byte(detail.DockerCompose))
projectName := strings.ToLower(install.Name)
images, err := composeV2.GetDockerComposeImages(projectName, content, []byte(detail.DockerCompose))
if err != nil {
upErr = err
return
Expand Down

0 comments on commit 79c2ba2

Please sign in to comment.