From e43ed8e8673c9f9f615dc86c15b3f1fa6283f8c7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 13 Dec 2023 11:03:33 +0100 Subject: [PATCH] Update 00-smb_mounts.sh --- .templates/00-smb_mounts.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.templates/00-smb_mounts.sh b/.templates/00-smb_mounts.sh index 87101a224..dc12ca212 100755 --- a/.templates/00-smb_mounts.sh +++ b/.templates/00-smb_mounts.sh @@ -28,7 +28,7 @@ test_mount () { else MOUNTOPTIONS="$MOUNTOPTIONS,noserverino" echo "... testing with noserverino" - mount_drive + mount_drive "$MOUNTOPTIONS" fi return 0 fi @@ -43,7 +43,7 @@ mount_drive () { # Define options MOUNTED=true - MOUNTOPTIONS="rw,file_mode=0775,dir_mode=0775,username=$USERNAME,password=${PASSWORD},nobrl$SMBVERS$SECVERS$PUID$PGID$CHARSET$DOMAIN" + MOUNTOPTIONS="$1" # Try mounting mount -t cifs -o "$MOUNTOPTIONS" "$disk" /mnt/"$diskname" 2>ERRORCODE || MOUNTED=false @@ -136,7 +136,7 @@ if bashio::config.has_value 'networkdisks'; then chown root:root /mnt/"$diskname" # Quickly try to mount with defaults - mount_drive + mount_drive "rw,file_mode=0775,dir_mode=0775,username=$USERNAME,password=${PASSWORD},nobrl$SMBVERS$SECVERS$PUID$PGID$CHARSET$DOMAIN" # Deeper analysis if failed if [ "$MOUNTED" = false ]; then @@ -217,7 +217,7 @@ if bashio::config.has_value 'networkdisks'; then ####################################### for SECVERS in "$SECVERS" ",sec=ntlmv2" ",sec=ntlmssp" ",sec=ntlmsspi" ",sec=krb5i" ",sec=krb5" ",sec=ntlm" ",sec=ntlmv2i"; do if [ "$MOUNTED" = false ]; then - mount_drive + mount_drive "rw,file_mode=0775,dir_mode=0775,username=$USERNAME,password=${PASSWORD},nobrl$SMBVERS$SECVERS$PUID$PGID$CHARSET$DOMAIN" fi done @@ -253,7 +253,7 @@ if bashio::config.has_value 'networkdisks'; then PUID="" PGID="" CHARSET="" - mount_drive + mount_drive "rw,file_mode=0775,dir_mode=0775,username=$USERNAME,password=${PASSWORD},nobrl$SMBVERS$SECVERS$PUID$PGID$CHARSET$DOMAIN" bashio::log.fatal "Error read : $(