ansible/playbooks/apps/templates/bin/download-free-mobile.j2

10 lines
357 B
Text
Raw Permalink Normal View History

2024-12-05 22:56:01 +01:00
#!/bin/bash
2024-12-08 18:40:36 +01:00
set -uo pipefail
2024-12-05 22:56:01 +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 free-mobile -o consume -u '{{downloader_free_mobile_username}}' -p '{{downloader_free_mobile_password}}' --headless --no-interaction
2024-12-08 18:40:36 +01:00
status=$?
curl -X PUT -d 'source=free-mobile' "https://hass.augendre.info/api/webhook/{{ downloader_home_assistant_hook_id }}"
exit $status