Files
docker-transmission/root/app/blocklist-update.sh

12 lines
329 B
Bash
Raw Normal View History

2016-10-18 08:41:49 -04:00
#!/usr/bin/with-contenv bash
BLOCKLIST_ENABLED=$(jq -r '.["blocklist-enabled"]' /config/settings.json)
2016-10-18 08:41:49 -04:00
if [ "$BLOCKLIST_ENABLED" == true ]; then
if [ -n "$USER" ] && [ -n "$PASS" ]; then
/usr/bin/transmission-remote -n "$USER":"$PASS" --blocklist-update
else
/usr/bin/transmission-remote --blocklist-update
fi
2016-11-02 09:38:19 -04:00
fi