From daee6c72233398978a0977598973328f48045794 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 29 Apr 2021 14:10:52 +0200 Subject: [PATCH] mounts NFS --- qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.3.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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 e955731a8..72ebc6f05 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 @@ -40,6 +40,14 @@ if bashio::config.has_value 'networkdisks'; then 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 2>ERRORCODE && MOUNTFAIL=false || MOUNTED=false fi + #If mounting failed, tries to mount as NFS + if [ $MOUNTED = true ]; then + bashio::log.info "... mounts as NFS" + disk=$(echo $disk | sed 's/^\///') + disk=$(echo $disk | sed 's/^\///') + mount -t nfs $disk /mnt/$diskname 2>ERRORCODE && MOUNTFAIL=false || MOUNTED=false + fi + # if Fail test different smb and sec versions if [ $MOUNTED = false ]; then for SMBVERS in ",vers=2.1" ",vers=3.0" ",vers=1.0" ",vers=3.1.1" ",vers=2.0" ",vers=3.0.2"