From 7d75cea1205352263f3bf4bb808daa981ec2e407 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 24 Oct 2021 18:19:56 +0200 Subject: [PATCH] Update 92-smb_mounts.sh --- cloudcommander/rootfs/92-smb_mounts.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cloudcommander/rootfs/92-smb_mounts.sh b/cloudcommander/rootfs/92-smb_mounts.sh index a0aaa879e..9325634fc 100644 --- a/cloudcommander/rootfs/92-smb_mounts.sh +++ b/cloudcommander/rootfs/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && - (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' && exit 0) - # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then - bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point