From 5243c860f38a4561f6ad62df70563a5582b7d237 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 5 Apr 2023 15:21:33 +0200 Subject: [PATCH] Have single mount command --- .templates/92-smb_mounts.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.templates/92-smb_mounts.sh b/.templates/92-smb_mounts.sh index 52bc60fa0..fa83bc8ff 100755 --- a/.templates/92-smb_mounts.sh +++ b/.templates/92-smb_mounts.sh @@ -61,16 +61,12 @@ if bashio::config.has_value 'networkdisks'; then mkdir -p /mnt/"$diskname" chown -R root:root /mnt/"$diskname" - # Tries to mount with default options - # shellcheck disable=SC2140 - mount -t cifs -o iocharset=utf8,rw,username="$CIFS_USERNAME",password="$CIFS_PASSWORD$DOMAIN$PUID$PGID" "$disk" /mnt/"$diskname" 2>ERRORCODE && MOUNTED=true || MOUNTED=false - # if Fail test different smb and sec versions if [ "$MOUNTED" = false ]; then # Test with domain, remove otherwise #################################### - for DOMAINVAR in "$DOMAIN" ",domain=WORKGROUP"; do + for DOMAINVAR in "$DOMAIN" ",domain=WORKGROUP" ""; do # Test with PUIDPGID, remove otherwise ###################################### @@ -82,7 +78,7 @@ if bashio::config.has_value 'networkdisks'; then # Test with different SMB versions ################################## - for SMBVERS in ",vers=3" ",vers=1.0" ",vers=2.1" ",vers=3.0" ",nodfs"; do + for SMBVERS in "" ",vers=3" ",vers=1.0" ",vers=2.1" ",vers=3.0" ",nodfs"; do # Test with different security versions #######################################