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