mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-10-26 06:36:05 +01:00
13 lines
273 B
Plaintext
Executable File
13 lines
273 B
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
# shellcheck shell=bash
|
|
|
|
pid=$(pidof transmission-daemon)
|
|
|
|
if [[ -n "$USER" ]] && [[ -n "$PASS" ]]; then
|
|
/usr/bin/transmission-remote -n "$USER":"$PASS" --exit
|
|
else
|
|
/usr/bin/transmission-remote --exit
|
|
fi
|
|
|
|
tail --pid=${pid} -f /dev/null
|