Skip to content

Commit

Permalink
fix: 解决旧版本安装的应用升级之后状态异常的问题 (#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 authored Jun 9, 2023
1 parent 0275716 commit 11ae051
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/app/service/app_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ func upgradeInstall(installId uint, detailId uint) error {
return
}
config := getAppCommonConfig(envs)
if config.ContainerName == "" {
config.ContainerName = install.ContainerName
envs[constant.ContainerName] = install.ContainerName
}
config.Advanced = true
if upErr = addDockerComposeCommonParam(composeMap, install.ServiceName, config, envs); upErr != nil {
return
Expand Down

0 comments on commit 11ae051

Please sign in to comment.