mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-18 22:22:59 +08:00
fix: 解决旧版本安装的应用升级之后状态异常的问题 (#1327)
This commit is contained in:
parent
0275716ff5
commit
11ae05163c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user