Files
docker-transmission/root/app/blocklist-update.sh
2023-03-02 19:16:31 -06:00

13 lines
373 B
Bash
Executable File

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
BLOCKLIST_ENABLED=$(jq -r '.["blocklist-enabled"]' /config/settings.json)
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
fi