From bf18554e20f82c84fff83fb4c7b5912d974b722d Mon Sep 17 00:00:00 2001 From: gitea-bot Date: Thu, 18 Dec 2025 01:40:35 +0000 Subject: [PATCH 1/2] chore: Update manifests after change --- .../qbittorrent/ConfigMap-glutun-update-script.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml b/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml index c96fc54e2..ff4936ba4 100644 --- a/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml +++ b/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml @@ -32,7 +32,7 @@ data: HTTP_STATUS=$(curl -i -X GET --silent --write-out '%{http_code}' --output response_body_test.json -b cookie -c cookie "${API_ENDPOINT}/app/version"); echo ">> HTTP Status Code: $HTTP_STATUS" - VERSION=$(tail -n 1 ./test/response_body_test.json) + VERSION=$(tail -n 1 response_body_test.json) if [ "$HTTP_STATUS" == "200" ]; then echo ">> Access confirmed, qBittorrent version: ${VERSION}" @@ -44,7 +44,7 @@ data: PAYLOAD=$( jq -n \ --arg random_port "true" \ - '{random_port: $random_port' ); + '{random_port: $random_port}' ); echo " "; echo ">> Setting port to random ..."; @@ -64,7 +64,7 @@ data: PAYLOAD=$( jq -n \ --arg listen_port "${1}" \ - '{listen_port: $listen_port' ); + '{listen_port: $listen_port}' ); echo " "; echo ">> Updating port with ${1} ..."; -- 2.49.1 From 3150b4f277b283710097b7778512e4ace38551b1 Mon Sep 17 00:00:00 2001 From: gitea-bot Date: Thu, 18 Dec 2025 01:49:03 +0000 Subject: [PATCH 2/2] chore: Update manifests after change --- .../qbittorrent/ConfigMap-glutun-update-script.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml b/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml index ff4936ba4..7a1061922 100644 --- a/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml +++ b/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml @@ -43,12 +43,11 @@ data: fi PAYLOAD=$( jq -n \ - --arg random_port "true" \ - '{random_port: $random_port}' ); + '{random_port: true}' ); echo " "; echo ">> Setting port to random ..."; - HTTP_STATUS=$(curl -i -X POST --silent -b cookie -c cookie --write-out '%{http_code}' --output response_body_random.json --data "$PAYLOAD" "${API_ENDPOINT}/app/setPreferences"); + HTTP_STATUS=$(curl -i -X POST --silent -b cookie -c cookie --write-out '%{http_code}' --output response_body_random.json --data "json=$PAYLOAD" "${API_ENDPOINT}/app/setPreferences"); if [ "$HTTP_STATUS" == "200" ]; then echo ">> Random port set" @@ -63,12 +62,11 @@ data: sleep 5; PAYLOAD=$( jq -n \ - --arg listen_port "${1}" \ - '{listen_port: $listen_port}' ); + "{listen_port: ${1}}" ); echo " "; echo ">> Updating port with ${1} ..."; - curl -i -X POST --silent -b cookie -c cookie --write-out '%{http_code}' --output response_body_update.json --data "$PAYLOAD" "${API_ENDPOINT}/app/setPreferences"; + curl -i -X POST --silent -b cookie -c cookie --write-out '%{http_code}' --output response_body_update.json --data "json=$PAYLOAD" "${API_ENDPOINT}/app/setPreferences"; if [ "$HTTP_STATUS" == "200" ]; then echo ">> Port set" -- 2.49.1