Skip to content

Commit

Permalink
exit on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Feb 3, 2024
1 parent c781dd3 commit 43b8f5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VERSION.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"changelog": "https://github.com/qbittorrent/qbittorrent/compare/release-4.6.2...release-4.6.3",
"upstream_image": "ghcr.io/hotio/base",
"upstream_tag": "alpinevpn",
"upstream_digest_amd64": "sha256:62d3ab2f25cabce413c537cfe15e268433a691685b27f4f25fcfeb68a455c268",
"upstream_digest_arm64": "sha256:6af209c574028a4c508001f834254c8dbf7593dbcc306c5176cb2980eced5c75",
"upstream_digest_amd64": "sha256:bd91858698fcf564d29675ef20849a850df988f2cdb562354a45900515379570",
"upstream_digest_arm64": "sha256:b2c39c9b7930f87b0d17e964cbc00d20974e1d132816ac4125b22b3cf79dd94e",
"test_url": "http://localhost:8080",
"nightwalker_version": "2301b1cc436d802abe1e2cb6f132dff12e40157b"
}
1 change: 1 addition & 0 deletions root/app/forwarded_port_update_app
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ if grep -q 'WebUI\\LocalHostAuth=false' "${CONFIG_DIR}/config/qBittorrent.conf";
if ! curl -fsSL --retry 5 --retry-max-time 60 --insecure -X POST -d "json={\"web_ui_upnp\":false,\"upnp\":false,\"random_port\":false,\"listen_port\":${port}}" "${webui_https}://localhost:${WEBUI_PORTS%%/*}/api/v2/app/setPreferences"; then
echo "[ERROR] [$(date '+%Y-%m-%d %H:%M:%S')] [QBITTORRENT] Unable to set forwarded port, something is wrong!"
rm -rf "${CONFIG_DIR}/wireguard/forwarded_port"
exit 1
else
echo "[INFO] [$(date '+%Y-%m-%d %H:%M:%S')] [QBITTORRENT] Updated forwarded port."
fi
Expand Down

0 comments on commit 43b8f5b

Please sign in to comment.