mirror of
https://github.com/luzifer-docker/vault-self-unseal.git
synced 2024-12-20 15:11:18 +00:00
Do not crash when UNSEAL_TOKEN is not available
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ec545715d4
commit
fc760d9666
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ function main() {
|
|||
}
|
||||
|
||||
export VAULT_TOKEN=$(authenticate)
|
||||
UNSEAL_TOKEN=$(getUnsealKey)
|
||||
UNSEAL_TOKEN=$(getUnsealKey || echo "")
|
||||
|
||||
unseal "${UNSEAL_TOKEN}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue