mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
parent
0e93d7815b
commit
adfa021760
@ -248,6 +248,8 @@ func handleAppRecover(install *model.AppInstall, recoverFile string, isRollback
|
|||||||
oldInstall.AppId = install.AppId
|
oldInstall.AppId = install.AppId
|
||||||
oldInstall.AppDetailId = install.AppDetailId
|
oldInstall.AppDetailId = install.AppDetailId
|
||||||
oldInstall.App.ID = install.AppId
|
oldInstall.App.ID = install.AppId
|
||||||
|
oldInstall.Env = strings.ReplaceAll(oldInstall.Env, oldInstall.ContainerName, install.ContainerName)
|
||||||
|
oldInstall.ContainerName = install.ContainerName
|
||||||
if err := appInstallRepo.Save(context.Background(), &oldInstall); err != nil {
|
if err := appInstallRepo.Save(context.Background(), &oldInstall); err != nil {
|
||||||
global.LOG.Errorf("save db app install failed, err: %v", err)
|
global.LOG.Errorf("save db app install failed, err: %v", err)
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user