docker-scripts/linux/ecosystem/qbittorrent/4.6.0/docker-entrypoint.sh
2024-02-09 17:42:17 +03:00

16 lines
581 B
Bash
Executable File

#!/bin/bash
: ${QBT_DIR:=/opt/qbittorrent}
: ${QBT_PROFILES_DIR:=/opt/qbittorrent/profiles}
: ${QBT_PROFILE_NAME:=docker}
: ${QBT_PORT_WEBUI:=8282}
: ${QBT_PORT_NAT:=1337}
: ${QBT_PORT_TRACKER:=9000}
echo "======================================================"
echo "[qbittorrent] Starting `qbittorrent-nox -v`..."
echo "======================================================"
tail -n 512 -f ${QBT_PROFILES_DIR}/qBittorrent_${QBT_PROFILE_NAME}/data/logs/* &
exec qbittorrent-nox --profile=${QBT_PROFILES_DIR} --configuration=${QBT_PROFILE_NAME} --webui-port=${QBT_PORT_WEBUI}