From fc478400c68bb17658b2321216513013ed51c4df Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Wed, 17 Dec 2025 11:36:44 -0600 Subject: [PATCH] add logging to script --- clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml b/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml index b009f5f87..28dce61dc 100644 --- a/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml +++ b/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml @@ -14,9 +14,11 @@ data: echo "curl could not be found, installing"; apk add curl; fi; + echo ">> Setting port to random ..."; 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"; + echo ">> Sleeping for changes to take effect"; + sleep 10; + echo ">> Updating port with $1 ..."; curl -i -X POST --silent --write-out '%{http_code}' -d "json={\"listen_port\": \"${1}\"}" "http://localhost:8080/api/v2/app/setPreferences"; ---