Update 92-smb_mounts_v1.3.sh

This commit is contained in:
Alexandre
2021-04-29 14:11:20 +02:00
committed by GitHub
parent daee6c7223
commit e5da2ce48a

View File

@@ -43,9 +43,9 @@ if bashio::config.has_value 'networkdisks'; then
#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
disknfs=$(echo $disk | sed 's/^\///')
disknfs=$(echo $disknfs | sed 's/^\///')
mount -t nfs $disknfs /mnt/$diskname 2>ERRORCODE && MOUNTFAIL=false || MOUNTED=false
fi
# if Fail test different smb and sec versions