Update 92-smb_mounts_v1.3.sh

This commit is contained in:
Alexandre
2021-04-29 14:26:25 +02:00
committed by GitHub
parent 68825c795e
commit ff6c3f3ac7

View File

@@ -41,12 +41,12 @@ if bashio::config.has_value 'networkdisks'; then
fi
#If mounting failed, tries to mount as NFS
if [ $MOUNTED = true ]; then
bashio::log.info "... mounts as NFS"
disknfs=$(echo $disk | sed 's/^\///')
disknfs=$(echo $disknfs | sed 's/^\///')
mount -t nfs $disknfs /mnt/$diskname 2>ERRORCODE && MOUNTED=true || MOUNTED=false
fi
#if [ $MOUNTED = true ]; then
# bashio::log.info "... mounts as NFS"
# disknfs=$(echo $disk | sed 's/^\///')
# disknfs=$(echo $disknfs | sed 's/^\///')
# mount -t nfs $disknfs /mnt/$diskname 2>ERRORCODE && MOUNTED=true || MOUNTED=false
#fi
# if Fail test different smb and sec versions
if [ $MOUNTED = false ]; then