mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
fix: 解决删除 openresty 之后没有同步删除 php 运行容器的问题 (#3984)
This commit is contained in:
parent
96233ee9b2
commit
262cbb9405
@ -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…
x
Reference in New Issue
Block a user