From df34c67d4d228cfc7b4304cd1b23e233a6e02322 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 29 Apr 2021 11:21:16 +0200 Subject: [PATCH] Update 92-smb_mounts_v1.3.sh --- qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.3.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.3.sh b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.3.sh index 3ad596907..0cb1cb7de 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.3.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.3.sh @@ -34,13 +34,14 @@ if bashio::config.has_value 'networkdisks'; then bashio::log.info "... trying to mount with default options" mount -t cifs -o rw,iocharset=utf8,file_mode=0777,dir_mode=0777,username="$CIFS_USERNAME",password="${CIFS_PASSWORD}"$DOMAIN $disk /mnt/$diskname - #If mounting failed + #If mounting failed, tries to force uid/gid 0/0 if [ $? != 0 ]; then - #Tries to force uid/gid 0/0 bashio::log.info "... trying to force uid 0 gid 0" mount -t cifs -o rw,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=0,gid=0,forceuid,forcegid,username="$CIFS_USERNAME",password="${CIFS_PASSWORD}"$DOMAIN $disk /mnt/$diskname + fi # if Fail test different smb and sec versions + if [ $? != 0 ]; then for SMBVERS in ",vers=2.1" ",vers=3.0" ",vers=1.0" ",vers=3.1.1" ",vers=2.0" ",vers=3.0.2" do bashio::log.warning "... trying to mount with $SMBVERS"