File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
etc/s6-overlay/s6-rc.d/svc-transmission Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
# shellcheck shell=bash
3
3
4
4
BLOCKLIST_ENABLED=$( jq -r ' .["blocklist-enabled"]' /config/settings.json)
5
+ PORT=$( jq ' .["rpc-port"]' /config/settings.json)
5
6
6
7
if [[ " $BLOCKLIST_ENABLED " == true ]]; then
7
8
if [[ -n " $USER " ]] && [[ -n " $PASS " ]]; then
8
- /usr/bin/transmission-remote -n " $USER " :" $PASS " --blocklist-update
9
+ /usr/bin/transmission-remote 127.0.0.1: ${PORT :- 9091} -n " $USER " :" $PASS " --blocklist-update
9
10
else
10
- /usr/bin/transmission-remote --blocklist-update
11
+ /usr/bin/transmission-remote 127.0.0.1: ${PORT :- 9091} --blocklist-update
11
12
fi
12
13
fi
Original file line number Diff line number Diff line change 2
2
# shellcheck shell=bash
3
3
4
4
pid=$(pidof transmission-daemon)
5
+ PORT=$(jq '.["rpc-port"]' /config/settings.json)
5
6
6
7
if [[ -n "$USER" ]] && [[ -n "$PASS" ]]; then
7
- /usr/bin/transmission-remote -n "$USER":"$PASS" --exit
8
+ /usr/bin/transmission-remote 127.0.0.1:${PORT:-9091} -n "$USER":"$PASS" --exit
8
9
else
9
- /usr/bin/transmission-remote --exit
10
+ /usr/bin/transmission-remote 127.0.0.1:${PORT:-9091} --exit
10
11
fi
11
12
12
13
tail --pid=${pid} -f /dev/null
You can’t perform that action at this time.
0 commit comments