#!/bin/bash set -uo pipefail pushd /mnt/data/paperless-ngx || exit 1 ./downloader shiva -o consume -u '{{downloader_shiva_username}}' -p '{{downloader_shiva_password}}' --headless status=$? curl -X PUT -d 'source=shiva' "https://hass.augendre.info/api/webhook/{{ downloader_home_assistant_hook_id }}" exit $status