mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-11-01 09:25:48 +01:00
13 lines
373 B
Bash
Executable File
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
|