diff --git a/services/vault/scripts/vault_k8s_auth_configure.sh b/services/vault/scripts/vault_k8s_auth_configure.sh index 4457fc6..14604cd 100644 --- a/services/vault/scripts/vault_k8s_auth_configure.sh +++ b/services/vault/scripts/vault_k8s_auth_configure.sh @@ -9,12 +9,12 @@ if [ -z "${status_json}" ]; then exit 1 fi -if ! printf '%s' "${status_json}" | grep -q '"initialized":true'; then +if ! printf '%s' "${status_json}" | grep -q '"initialized":[[:space:]]*true'; then log "vault not initialized; skipping" exit 0 fi -if printf '%s' "${status_json}" | grep -q '"sealed":true'; then +if printf '%s' "${status_json}" | grep -q '"sealed":[[:space:]]*true'; then log "vault sealed; skipping" exit 0 fi