allow addon start to fail if smb not mounted

This commit is contained in:
Alexandre
2021-04-22 15:36:24 +02:00
committed by GitHub
parent b4a9a308e6
commit 37ae17eb80

View File

@@ -29,5 +29,5 @@ if bashio::config.has_value 'networkdisks'; then
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" # Mount share
done || true
done
fi