ansible/playbooks/apps/templates/bin/download-free-mobile.j2
Gabriel Augendre e0a7e6d9c8
Some checks failed
/ run ansible (push) Has been cancelled
add home assistant notif to downloads
2024-12-08 18:40:36 +01:00

9 lines
357 B
Django/Jinja
Executable file

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