From 26317e2afa1813e0d6d79b55ab215a7198b780f8 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 1 Dec 2020 14:21:53 +0100 Subject: [PATCH] mount in /share --- emby/root/etc/cont-init.d/50-mounts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/emby/root/etc/cont-init.d/50-mounts b/emby/root/etc/cont-init.d/50-mounts index 4192c49a4..e7fb49d35 100644 --- a/emby/root/etc/cont-init.d/50-mounts +++ b/emby/root/etc/cont-init.d/50-mounts @@ -1,5 +1,3 @@ -#!/usr/bin/with-contenv bashio - #!/usr/bin/with-contenv bashio bashio::log.info 'Mounting external hdd...' @@ -10,13 +8,13 @@ if bashio::config.has_value 'localdisks'; then for disk in $MOREDISKS do bashio::log.info "Mount ${disk}" - mkdir -p /storage/$disk && \ - if [ ! -d /storage/$disk ]; then - echo "Creating /storage/$disk" - mkdir -p /storage/$disk - chown -R abc:abc /storage/$disk + 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 /dev/$disk /storage/$disk && \ + mount /dev/$disk /share/$disk && \ bashio::log.info "Success!" done || \ bashio::log.warning "Protection mode is ON. Unable to mount local drives!"