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