ansible/playbooks/apps/templates/bin/download-freebox.j2

10 lines
324 B
Text
Raw Permalink Normal View History

2024-12-05 00:54:49 +01:00
#!/bin/bash
2024-12-08 18:40:36 +01:00
set -uo pipefail
2024-12-05 00:54:49 +01:00
2024-12-08 18:40:36 +01:00
pushd /mnt/data/paperless-ngx || exit 1
2024-12-05 23:21:25 +01:00
./downloader freebox -o consume -u '{{downloader_freebox_username}}' -p '{{downloader_freebox_password}}' --headless
2024-12-08 18:40:36 +01:00
status=$?
curl -X PUT -d 'source=freebox' "https://hass.augendre.info/api/webhook/{{ downloader_home_assistant_hook_id }}"
exit $status