From b776ffbfc58878fb1acbed767296dea2d322ae60 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sat, 13 Dec 2025 14:47:40 -0600 Subject: [PATCH] change script --- clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml b/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml index 748b6c01f..b009f5f87 100644 --- a/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml +++ b/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml @@ -14,8 +14,10 @@ data: echo "curl could not be found, installing"; apk add curl; fi; + curl -i -X POST --silent --write-out '%{http_code}' -d "json={\"random_port\": \"true\"}" "http://localhost:8080/api/v2/app/setPreferences"; + sleep 10 echo "updating port with $1"; - curl -i -X POST -d "json={\"listen_port\": \"${1}\"}" "http://localhost:8080/api/v2/app/setPreferences"; + curl -i -X POST --silent --write-out '%{http_code}' -d "json={\"listen_port\": \"${1}\"}" "http://localhost:8080/api/v2/app/setPreferences"; --- apiVersion: v1