From 5007a213a52997152159e85f10554ddefc9c62bc Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 9 Oct 2021 15:58:32 +0200 Subject: [PATCH] Update and rename 92-smb_mounts_v1.4.sh to 92-smb_mounts_v1.5.sh --- .../{92-smb_mounts_v1.4.sh => 92-smb_mounts_v1.5.sh} | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) rename lidarr/root/etc/cont-init.d/{92-smb_mounts_v1.4.sh => 92-smb_mounts_v1.5.sh} (97%) 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')"