Add default value for WebUI port

This commit is contained in:
Chocobo1 2023-03-25 15:17:08 +08:00
parent b193ef5c8f
commit 799fed1dcc
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
4 changed files with 10 additions and 0 deletions

View File

@ -54,6 +54,7 @@ https://github.com/qbittorrent/qBittorrent/issues
If you are up to test the bleeding-edge version, you can put `alpha` to get the weekly build.
* `QBT_WEBUI_PORT` \
This environment variable sets the port number which qBittorrent WebUI will be binded to.
Defaults to port `8080` if value is not set.
#### Volumes

View File

@ -44,6 +44,10 @@ else
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1false|}}' "$qbtConfigFile"
fi
if [ -z "$QBT_WEBUI_PORT" ]; then
QBT_WEBUI_PORT=8080
fi
# those are owned by root by default
# don't change existing files owner in `$downloadsPath`
chown qbtUser:qbtUser "$downloadsPath"

View File

@ -44,6 +44,7 @@ It is also recommended to install Docker Compose as it can significantly ease th
Or you can put `devel` to build the latest development version.
* `QBT_WEBUI_PORT` \
This environment variable sets the port number which qBittorrent WebUI will be binded to.
Defaults to port `8080` if value is not set.
#### Volumes

View File

@ -44,6 +44,10 @@ else
sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1false|}}' "$qbtConfigFile"
fi
if [ -z "$QBT_WEBUI_PORT" ]; then
QBT_WEBUI_PORT=8080
fi
# those are owned by root by default
# don't change existing files owner in `$downloadsPath`
chown qbtUser:qbtUser "$downloadsPath"