mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-12-23 06:21:55 +01:00
9 lines
357 B
Django/Jinja
Executable file
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
|