Do not crash when UNSEAL_TOKEN is not available

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-05-30 14:27:21 +02:00
parent ec545715d4
commit fc760d9666
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -30,7 +30,7 @@ function main() {
}
export VAULT_TOKEN=$(authenticate)
UNSEAL_TOKEN=$(getUnsealKey)
UNSEAL_TOKEN=$(getUnsealKey || echo "")
unseal "${UNSEAL_TOKEN}"