mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-11-01 09:25:48 +01:00
12 lines
349 B
Bash
Executable File
12 lines
349 B
Bash
Executable File
#!/usr/bin/with-contenv 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
|