From c5232720664b2600cfa12bf546d84f186fe90eff Mon Sep 17 00:00:00 2001 From: gitea-bot Date: Thu, 18 Dec 2025 02:10:43 +0000 Subject: [PATCH] chore: Update manifests after change --- .../qbittorrent/ConfigMap-glutun-update-script.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml b/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml index 674a4bdbf..6252bae4a 100644 --- a/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml +++ b/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml @@ -80,13 +80,13 @@ data: echo ">> Sleeping for changes to take effect"; sleep 5; - echo " "; - echo ">> Qbittorrent's post is now:"; HTTP_STATUS=$(curl -i -X GET --silent -b cookie -c cookie --write-out '%{http_code}' --output response_body_check.json "${API_ENDPOINT}/app/preferences"); + LISTEN_PORT=$(tail -n 1 response_body_check.json | jq -r .listen_port) - LISTEN_PORT=$(cat response_body_check.json | jq -r .listen_port) + echo " "; + echo ">> qBittorrent's post is now: $LISTEN_PORT"; - [[ "$HTTP_STATUS" == "200" || "$LISTEN_PORT" == "${1}" ]]; + if [[ "$HTTP_STATUS" == "200" && "$LISTEN_PORT" == "${1}" ]]; then echo ">> Port updated successfully!" else echo ">> ERROR: HTTP status code: $HTTP_STATUS" -- 2.49.1