1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-02-08 01:20:07 +08:00

feat: 解决安装应用失败的问题 (#2172)

This commit is contained in:
zhengkunwang 2023-09-04 16:26:13 +08:00 committed by GitHub
parent db443a9f82
commit c00d715b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,7 +361,7 @@ func (a AppService) Install(ctx context.Context, req request.AppInstallCreate) (
} }
index++ index++
} }
if app.Limit == 0 { if app.Limit == 0 && appInstall.Name != serviceName {
servicesMap[appInstall.Name] = servicesMap[serviceName] servicesMap[appInstall.Name] = servicesMap[serviceName]
delete(servicesMap, serviceName) delete(servicesMap, serviceName)
serviceName = appInstall.Name serviceName = appInstall.Name