Browse Source

fix: 解决删除 openresty 之后没有同步删除 php 运行容器的问题 (#3984)

pull/3987/head
zhengkunwang 9 months ago committed by GitHub
parent
commit
262cbb9405
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      backend/app/service/app_utils.go

4
backend/app/service/app_utils.go

@ -354,8 +354,8 @@ func deleteAppInstall(install model.AppInstall, deleteBackup bool, forceDelete b
websiteApp, _ := appRepo.GetFirst(commonRepo.WithByID(websiteAppInstall.AppId)) websiteApp, _ := appRepo.GetFirst(commonRepo.WithByID(websiteAppInstall.AppId))
if websiteApp.Type == constant.RuntimePHP { if websiteApp.Type == constant.RuntimePHP {
go func() { go func() {
_, _ = compose.Down(install.GetComposePath()) _, _ = compose.Down(websiteAppInstall.GetComposePath())
_ = op.DeleteDir(install.GetPath()) _ = op.DeleteDir(websiteAppInstall.GetPath())
}() }()
_ = appInstallRepo.Delete(ctx, websiteAppInstall) _ = appInstallRepo.Delete(ctx, websiteAppInstall)
} }

Loading…
Cancel
Save