mirror of
https://github.com/luzifer-docker/vault-self-unseal.git
synced 2024-12-20 15:11:18 +00:00
Fix: Finish variable renaming
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
73ae2215d5
commit
198d09b158
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
LOCAL_VAULT_ADDR=${LOCAL_VAULT:-http://vault:8200}
|
LOCAL_VAULT_ADDR=${LOCAL_VAULT_ADDR:-http://vault:8200}
|
||||||
UNSEAL_TOKEN_FIELD=${UNSEAL_TOKEN_FIELD:-token}
|
UNSEAL_TOKEN_FIELD=${UNSEAL_TOKEN_FIELD:-token}
|
||||||
UNSEAL_TOKEN_PATH=${UNSEAL_TOKEN_PATH:-secret/mgmt/unseal}
|
UNSEAL_TOKEN_PATH=${UNSEAL_TOKEN_PATH:-secret/mgmt/unseal}
|
||||||
LIVE_VAULT_ADDR=${VAULT_ADDR} # Fail if unset
|
LIVE_VAULT_ADDR=${VAULT_ADDR} # Fail if unset
|
||||||
|
@ -18,7 +18,7 @@ function getUnsealKey() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isSealed() {
|
function isSealed() {
|
||||||
curl -s ${LOCAL_VAULT}/v1/sys/health | jq -e '.sealed == true'
|
curl -s ${LOCAL_VAULT_ADDR}/v1/sys/health | jq -e '.sealed == true'
|
||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
|
Loading…
Reference in a new issue