|
|
|
@ -19,8 +19,9 @@ if [[ "${qbittorrent_running}" == "false" ]]; then
|
|
|
|
|
retry_count=$((retry_count-1))
|
|
|
|
|
if [ "${retry_count}" -eq "0" ]; then
|
|
|
|
|
|
|
|
|
|
echo "[warn] Wait for qBittorrent process to start aborted"
|
|
|
|
|
break
|
|
|
|
|
echo "[warn] Wait for qBittorrent process to start aborted, too many retries"
|
|
|
|
|
echo "[warn] Showing output from command before exit..."
|
|
|
|
|
timeout 10 yes | /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}" --profile=/config ; exit 1
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
|
@ -47,6 +48,8 @@ if [[ "${qbittorrent_running}" == "false" ]]; then
|
|
|
|
|
sleep 0.1
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
echo "[info] qBittorrent process listening on port ${WEBUI_PORT}"
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# change incoming port using the qbittorrent api - note this requires anonymous authentication via webui
|
|
|
|
|