mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-03 07:01:35 -06:00
mount profile on persistent data.
This commit is contained in:
@@ -234,6 +234,15 @@ func (manager *RoomManagerCtx) Create(settings types.RoomSettings) (string, erro
|
||||
HostPath: policyPath,
|
||||
ContainerPath: policyConfig.Path,
|
||||
})
|
||||
|
||||
// mount persistent folder
|
||||
if settings.Policies.PersistentData && policyConfig.Profile != "" {
|
||||
settings.Mounts = append(settings.Mounts, types.RoomMount{
|
||||
Type: types.MountPrivate,
|
||||
HostPath: "/profile",
|
||||
ContainerPath: policyConfig.Profile,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
mounts := []dockerMount.Mount{}
|
||||
|
||||
Reference in New Issue
Block a user