mount profile on persistent data.

This commit is contained in:
Miroslav Šedivý
2021-07-25 12:38:57 +02:00
parent 36d3f14611
commit a215f184dd
2 changed files with 27 additions and 12 deletions
+9
View File
@@ -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{}