From 05da2f7238d81e6dacc8b981f4f00623c484bba0 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 18 Feb 2021 15:44:02 +0100 Subject: [PATCH] Update run --- filebrowser/run | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/filebrowser/run b/filebrowser/run index 38f283318..14e0f3991 100644 --- a/filebrowser/run +++ b/filebrowser/run @@ -10,15 +10,16 @@ PGID=0 #################### # MOUNT SMB SHARES # #################### -# Mount CIFS Share if configured and if Protection Mode is active if bashio::config.has_value 'networkdisks'; then -# Define variables + # Mount CIFS Share if configured and if Protection Mode is active + bashio::log.info 'Mounting smb share(s)...' + + # Define variables MOREDISKS=$(bashio::config 'networkdisks') CIFS_USERNAME=$(bashio::config 'cifsusername') CIFS_PASSWORD=$(bashio::config 'cifspassword') -# Mounting disks - bashio::log.info 'Mounting smb share(s)...' + # Mounting disks for disk in ${MOREDISKS//,/ } # Separate comma separated values do disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name @@ -34,8 +35,6 @@ fi # SSL CONFIG # ################ -# Clean data - bashio::config.require.ssl if bashio::config.true 'ssl'; then bashio::log.info "ssl enabled. If webui don't work, disable ssl or check your certificate paths"