mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-02 22:51:34 -06:00
settings mount: remove root folder.
This commit is contained in:
@@ -328,9 +328,10 @@ func (manager *RoomManagerCtx) GetSettings(id string) (*types.RoomSettings, erro
|
||||
}
|
||||
|
||||
mounts := []types.RoomMount{}
|
||||
dataRoot := path.Join(manager.config.InstanceData, roomName)
|
||||
for _, mount := range container.Mounts {
|
||||
mounts = append(mounts, types.RoomMount{
|
||||
HostPath: mount.Source,
|
||||
HostPath: strings.TrimPrefix(mount.Source, dataRoot),
|
||||
ContainerPath: mount.Destination,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user