2019-11-21 02:39:13 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-05-30 17:46:30 +03:00
|
|
|
: ${QBT_DIR:=/opt/qbittorrent}
|
2019-11-21 02:39:13 +03:00
|
|
|
: ${QBT_PROFILES_DIR:=/opt/qbittorrent/profiles}
|
|
|
|
: ${QBT_PROFILE_NAME:=docker}
|
2022-05-30 16:15:57 +03:00
|
|
|
: ${QBT_PORT_WEBUI:=8282}
|
2022-05-30 17:46:30 +03:00
|
|
|
: ${QBT_PORT_NAT:=1337}
|
2022-05-30 16:15:57 +03:00
|
|
|
: ${QBT_PORT_TRACKER:=9000}
|
2019-11-21 02:39:13 +03:00
|
|
|
|
2019-11-21 03:05:48 +03:00
|
|
|
|
2022-05-30 16:15:57 +03:00
|
|
|
echo "======================================================"
|
|
|
|
echo "[qbittorrent] Starting `qbittorrent-nox -v`..."
|
|
|
|
echo "======================================================"
|
|
|
|
|
|
|
|
tail -n 512 -f ${QBT_PROFILES_DIR}/qBittorrent_${QBT_PROFILE_NAME}/data/logs/* &
|
2022-05-30 17:37:56 +03:00
|
|
|
exec qbittorrent-nox --profile=${QBT_PROFILES_DIR} --configuration=${QBT_PROFILE_NAME} --webui-port=${QBT_PORT_WEBUI}
|