From 974e5e5b758714f5af1f71ef80b65c11c6212580 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 29 Nov 2020 19:12:44 +0100 Subject: [PATCH] Update 50-mounts --- emby/root/etc/cont-init.d/50-mounts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/emby/root/etc/cont-init.d/50-mounts b/emby/root/etc/cont-init.d/50-mounts index d9a8a741a..75124f881 100644 --- a/emby/root/etc/cont-init.d/50-mounts +++ b/emby/root/etc/cont-init.d/50-mounts @@ -10,15 +10,14 @@ if bashio::config.has_value 'localdisks'; then for disk in $MOREDISKS do bashio::log.info "Mount ${disk}" - mkdir -p /$disk && \ - - if [ ! -d /share/storage ]; then - echo "Creating /share/storage" - mkdir -p /share/storage - chown -R abc:abc /share/storage + mkdir -p /share/$disk && \ + if [ ! -d /share/$disk ]; then + echo "Creating /share/$disk" + mkdir -p /share/$disk + chown -R abc:abc /share/$disk fi - mount $disk /share/storage && \ + mount $disk /share/$disk && \ bashio::log.info "Success!" done || \ bashio::log.warning "Protection mode is ON. Unable to mount local drives!"