mirror of
https://github.com/linuxserver/docker-qbittorrent.git
synced 2025-06-27 17:00:42 -04:00
Read webui bind address from config if present.
This commit is contained in:
parent
4437b92c16
commit
4573a98e14
3 changed files with 8 additions and 1 deletions
|
@ -6,6 +6,11 @@ if [[ -n "${TORRENTING_PORT}" ]]; then
|
|||
TORRENTING_PORT_ARG="--torrenting-port=${TORRENTING_PORT}"
|
||||
fi
|
||||
|
||||
WEBUI_ADDRESS=$(grep -Po "^WebUI\\\Address=\K(.*)" /config/qBittorrent/qBittorrent.conf)
|
||||
if [[ -z ${WEBUI_ADDRESS} ]] || [[ ${WEBUI_ADDRESS} == "*" ]]; then
|
||||
WEBUI_ADDRESS="localhost"
|
||||
fi
|
||||
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z ${WEBUI_ADDRESS} ${WEBUI_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