From b82f904b4b3daab68bb9c90a55abbca966354c9d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 16 Feb 2021 21:49:29 +0100 Subject: [PATCH] Update run.sh --- filebrowser/run.sh | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/filebrowser/run.sh b/filebrowser/run.sh index 3d5ce1315..6d3d4c6f4 100644 --- a/filebrowser/run.sh +++ b/filebrowser/run.sh @@ -1,28 +1,5 @@ #!/bin/sh bashio -###################### -# MOUNT LOCAL SHARES # -###################### -# Mount local Share if configured and if Protection Mode is active -if bashio::config.has_value 'localdisks'; then - bashio::log.info 'Mounting external hdd...' - MOREDISKS=$(bashio::config 'localdisks') - bashio::log.info "Local Disks mounting.. ${MOREDISKS}" && \ - for disk in $MOREDISKS - do - bashio::log.info "Mount ${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 /share/$disk && \ - bashio::log.info "Success!" - done || \ - bashio::log.warning "Protection mode is ON. Unable to mount local drives!" -fi - #################### # MOUNT SMB SHARES # ####################