From 79c2ba21255ed61d2cf4b4c2c870f73614709035 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Sun, 12 May 2024 22:16:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E5=AD=98=E5=9C=A8=E5=A4=A7=E5=86=99=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=97=A0=E6=B3=95=E5=8D=87=E7=BA=A7=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#4987)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/4986 --- backend/app/service/app_utils.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/app/service/app_utils.go b/backend/app/service/app_utils.go index 693235b78..f3c04c066 100644 --- a/backend/app/service/app_utils.go +++ b/backend/app/service/app_utils.go @@ -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 { @@ -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