fix: 解决旧版本安装的应用升级之后状态异常的问题 (#1327)

This commit is contained in:
zhengkunwang223 2023-06-09 23:40:11 +08:00 committed by GitHub
parent 0275716ff5
commit 11ae05163c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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