diff --git a/lidarr/root/etc/cont-init.d/92-smb_mounts_v1.4.sh b/lidarr/root/etc/cont-init.d/92-smb_mounts_v1.5.sh similarity index 97% rename from lidarr/root/etc/cont-init.d/92-smb_mounts_v1.4.sh rename to lidarr/root/etc/cont-init.d/92-smb_mounts_v1.5.sh index c9008b2be..a31ade114 100644 --- a/lidarr/root/etc/cont-init.d/92-smb_mounts_v1.4.sh +++ b/lidarr/root/etc/cont-init.d/92-smb_mounts_v1.5.sh @@ -4,8 +4,6 @@ # MOUNT SMB SHARES # #################### 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)...' # Define variables MOREDISKS=$(bashio::config 'networkdisks') @@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then MOUNTED=false SMBVERS="" SECVERS="" + + # Dont execute if still default + [ ${MOREDISKS::1} == "<" ] && exit 0 + + # Mount CIFS Share if configured and if Protection Mode is active + bashio::log.info 'Mounting smb share(s)...' if bashio::config.has_value 'cifsdomain'; then DOMAIN=",domain=$(bashio::config 'cifsdomain')"