diff --git a/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml b/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml index 4a8a41bff..9010e6bfe 100644 --- a/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml +++ b/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml @@ -10,10 +10,9 @@ metadata: data: update.sh: | API_ENDPOINT="http://localhost:8080/api/v2"; - MAX_RETRIES=5 SUCCESS=false - for ((i=1; i<=$MAX_RETRIES; i++)); do + for i in {1..5}; do if apk update --short &> /dev/null; then echo ">> Attempt $i: Repositories are reachable" SUCCESS=true diff --git a/clusters/cl01tl/helm/vault/templates/config-map.yaml b/clusters/cl01tl/helm/vault/templates/config-map.yaml index 513ac4547..55dd2f421 100644 --- a/clusters/cl01tl/helm/vault/templates/config-map.yaml +++ b/clusters/cl01tl/helm/vault/templates/config-map.yaml @@ -9,10 +9,9 @@ metadata: app.kubernetes.io/part-of: {{ .Release.Name }} data: snapshot.sh: | - MAX_RETRIES=5 SUCCESS=false - for ((i=1; i<=$MAX_RETRIES; i++)); do + for i in {1..5}; do if apk update --short &> /dev/null; then echo ">> Attempt $i: Repositories are reachable"; SUCCESS=true;