mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-11-07 20:15:41 +01:00
12 lines
327 B
Bash
12 lines
327 B
Bash
|
|
#!/usr/bin/with-contenv bash
|
||
|
|
|
||
|
|
RESULT=`jq '.["blocklist-enabled"]' settings.json`
|
||
|
|
REQUIRE_AUTH=`jq '.["rpc-authentication-required"]' settings.json`
|
||
|
|
|
||
|
|
if [ $RESULT == true ]; then
|
||
|
|
if [ $REQUIRE_AUTH == true ]; then
|
||
|
|
transmission-remote -n $UIUSER:$UIPASS --blocklist-update
|
||
|
|
else
|
||
|
|
transmission-remote --blocklist-update
|
||
|
|
fi
|
||
|
|
fi
|