Add support for media folder (#2034)

This commit is contained in:
Franck Nijhof
2020-09-10 11:03:35 +02:00
committed by GitHub
parent b60d57c3a0
commit 0675f66ee6
7 changed files with 42 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ from ..const import (
MAP_ADDONS,
MAP_BACKUP,
MAP_CONFIG,
MAP_MEDIA,
MAP_SHARE,
MAP_SSL,
SECURITY_DISABLE,
@@ -269,6 +270,16 @@ class DockerAddon(DockerInterface):
}
)
if MAP_MEDIA in addon_mapping:
volumes.update(
{
str(self.sys_config.path_extern_media): {
"bind": "/media",
"mode": addon_mapping[MAP_MEDIA],
}
}
)
# Init other hardware mappings
# GPIO support