ansible/playbooks/apps/templates/bin/download-lcl-checking.j2

10 lines
327 B
Text
Raw Normal View History

2024-12-06 19:05:41 +01:00
#!/bin/bash
set -euo pipefail
2024-12-08 18:40:36 +01:00
pushd /mnt/data/paperless-ngx || exit 1
2024-12-06 19:05:41 +01:00
./downloader lcl-checking -o consume -u '{{downloader_lcl_username}}' -p '{{downloader_lcl_password}}' --headless
2024-12-08 18:40:36 +01:00
status=$?
curl -X PUT -d 'source=lcl-checking' "https://hass.augendre.info/api/webhook/{{ downloader_home_assistant_hook_id }}"
exit $status