mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-12-22 22:11:58 +01:00
9 lines
327 B
Django/Jinja
Executable file
9 lines
327 B
Django/Jinja
Executable file
#!/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
|