Update 92-smb_mounts_v1.3.sh

This commit is contained in:
Alexandre
2021-04-29 14:55:20 +02:00
committed by GitHub
parent 3b34526421
commit 68d64daaf9

View File

@@ -43,7 +43,7 @@ if bashio::config.has_value 'networkdisks'; then
#If mounting failed, no force uid/gid 0/0
if [ $MOUNTED = false ]; then
bashio::log.info "... trying to force uid 0 gid 0"
mount -t cifs -o rw,iocharset=utf8,file_mode=0777,dir_mode=0777,noforceuid,noforcegid,forceuid,forcegid,username=$CIFS_USERNAME,password=${CIFS_PASSWORD}$DOMAIN $disk /mnt/$diskname 2>ERRORCODE && MOUNTED=true || MOUNTED=false
mount -t cifs -o rw,iocharset=utf8,file_mode=0777,dir_mode=0777,noforceuid,noforcegid,username=$CIFS_USERNAME,password=${CIFS_PASSWORD}$DOMAIN $disk /mnt/$diskname 2>ERRORCODE && MOUNTED=true || MOUNTED=false
fi
#If mounting failed, tries to mount as NFS