mirror of
https://github.com/linuxserver/docker-qbittorrent.git
synced 2025-06-27 17:00:42 -04:00
do not override torrenting port unless var is set
This commit is contained in:
parent
873a9fab4a
commit
c9fef1b8fd
3 changed files with 8 additions and 4 deletions
|
@ -2,8 +2,10 @@
|
|||
# shellcheck shell=bash
|
||||
|
||||
WEBUI_PORT=${WEBUI_PORT:-8080}
|
||||
TORRENTING_PORT=${TORRENTING_PORT:-6881}
|
||||
if [[ -n "${TORRENTING_PORT}" ]]; then
|
||||
TORRENTING_PORT_ARG="--torrenting-port=${TORRENTING_PORT}"
|
||||
fi
|
||||
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
|
||||
s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}" --torrenting-port="${TORRENTING_PORT}"
|
||||
s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}" ${TORRENTING_PORT_ARG}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue