1
0
mirror of https://github.com/IceWhaleTech/CasaOS.git synced 2025-07-06 23:37:26 +02:00
Files
CasaOS/pkg/docker/volumes.go

12 lines
205 B
Go
Raw Normal View History

2021-09-26 10:35:02 +08:00
package docker
import "strings"
2021-09-26 10:35:02 +08:00
func GetDir(id, envName string) string {
2021-12-29 16:42:20 +08:00
if strings.Contains(envName, "$AppID") && len(id) > 0 {
return strings.ReplaceAll(envName, "$AppID", id)
}
2021-12-29 16:42:20 +08:00
return envName
2021-09-26 10:35:02 +08:00
}