Update 92-smb_mounts_v1.1

This commit is contained in:
Alexandre
2021-04-22 15:53:39 +02:00
committed by GitHub
parent 7f0b54ed5b
commit 2ba0bf7814

View File

@@ -28,6 +28,6 @@ if bashio::config.has_value 'networkdisks'; then
mkdir -p /mnt/$diskname # Create dir
chown -R root:root /mnt/$diskname # Permissions
mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD$SMBVERS $disk /mnt/$diskname && \
bashio::log.info "... $disk successfully mounted to /mnt/$diskname" || bashio::log.error "Unable to mount $disk to /mnt/$diskname with username $CIFS_USERNAME, $CIFS_PASSWORD . Please check your remote share path, the username and password, and try to check the smbv1 box in option if your share is using smb v1" # Mount share
bashio::log.info "... $disk successfully mounted to /mnt/$diskname" || {mount -v -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD$SMBVERS $disk /mnt/$diskname ; bashio::log.error "Unable to mount $disk to /mnt/$diskname with username $CIFS_USERNAME, $CIFS_PASSWORD . Please check your remote share path, the username and password, and try to check the smbv1 box in option if your share is using smb v1"} # Mount share
done
fi