From 23ca74b0ea7a51eeead68fa86b28681fa06df4aa Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 23 Feb 2021 09:19:35 +0100 Subject: [PATCH] Update run --- filebrowser/run | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filebrowser/run b/filebrowser/run index 59b73e14c..f3ed91171 100644 --- a/filebrowser/run +++ b/filebrowser/run @@ -11,6 +11,7 @@ PGID=0 # MOUNT SMB SHARES v1.1 # ######################### if bashio::config.has_value 'networkdisks'; then + # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' @@ -28,6 +29,7 @@ if bashio::config.has_value 'networkdisks'; then # Mounting disks for disk in ${MOREDISKS//,/ }; do # Separate comma separated values + ping $disk || {bashio::log.error "Disk unreachable. Check that name is correct (//ip/share)"} # Check if name correct disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name diskname=${disk##*/} # Get only last part of the name rm -r /mnt/$diskname 2>/dev/null || true # Create dir