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