diff --git a/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml b/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml index ecc52346f..4650d08a1 100644 --- a/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml +++ b/clusters/cl01tl/manifests/qbittorrent/ConfigMap-glutun-update-script.yaml @@ -14,7 +14,7 @@ data: SUCCESS=false for i in $(seq 1 "$MAX_RETRIES"); do - if apk update --short > /dev/null 2>&1; then + if apk update 2>&1 >/dev/null; then echo ">> Attempt $i: Repositories are reachable" SUCCESS=true break @@ -29,8 +29,7 @@ data: exit 1 fi - if ! command -v curl 2>&1 >/dev/null - then + if ! command -v curl 2>&1 >/dev/null; then echo "curl could not be found, installing"; apk add --no-cache curl; if [ $? -eq 0 ]; then @@ -41,8 +40,7 @@ data: fi fi; - if ! command -v jq 2>&1 >/dev/null - then + if ! command -v jq 2>&1 >/dev/null; then echo "jq could not be found, installing"; apk add --no-cache jq; if [ $? -eq 0 ]; then diff --git a/clusters/cl01tl/manifests/vault/ConfigMap-vault-snapshot-script.yaml b/clusters/cl01tl/manifests/vault/ConfigMap-vault-snapshot-script.yaml index 0fcea2377..b037c6c63 100644 --- a/clusters/cl01tl/manifests/vault/ConfigMap-vault-snapshot-script.yaml +++ b/clusters/cl01tl/manifests/vault/ConfigMap-vault-snapshot-script.yaml @@ -12,10 +12,8 @@ data: MAX_RETRIES=5 SUCCESS=false - apk update --short - for i in $(seq 1 "$MAX_RETRIES"); do - if apk update --short > /dev/null 2>&1; then + if apk update 2>&1 >/dev/null; then echo ">> Attempt $i: Repositories are reachable"; SUCCESS=true; break; @@ -30,8 +28,7 @@ data: exit 1; fi - if ! command -v jq 2>&1 >/dev/null; - then + if ! command -v jq 2>&1 >/dev/null; then echo "jq could not be found, installing"; apk add --no-cache jq; if [ $? -eq 0 ]; then