mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-10 03:30:53 +08:00
parent
0e93d7815b
commit
adfa021760
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue