From fb1f34454a2038d26769cb986e86804075b00032 Mon Sep 17 00:00:00 2001 From: gitea-bot Date: Thu, 18 Dec 2025 01:50:10 +0000 Subject: [PATCH] Automated Manifest Update (#2683) This PR contains newly rendered Kubernetes manifests automatically generated by the CI workflow. Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/2683 Co-authored-by: gitea-bot Co-committed-by: gitea-bot --- .../qbittorrent/ConfigMap-glutun-update-script.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 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..7a1061922 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}" @@ -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"