From 4befb1a82f708648390ab07a7cee941674432978 Mon Sep 17 00:00:00 2001 From: Vassiliy Yegorov Date: Thu, 28 Jul 2022 01:06:20 +0700 Subject: [PATCH] fix --- data/helpers/init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/helpers/init.sh b/data/helpers/init.sh index a84157e..2928481 100644 --- a/data/helpers/init.sh +++ b/data/helpers/init.sh @@ -1,6 +1,6 @@ apk add jq curl -VAULT_HOST=0.0.0.0:8200 +VAULT_HOST=http://0.0.0.0:8200 root_token=$(cat /helpers/keys.json | jq -r '.root_token') @@ -16,7 +16,7 @@ then unseal_vault else echo "Vault not initialized" - curl -s --request POST --data '{"secret_shares": 1, "secret_threshold": 1}' http://${VAULT_HOST}/v1/sys/init > /helpers/keys.json + curl -s --request POST --data '{"secret_shares": 1, "secret_threshold": 1}' ${VAULT_HOST}/v1/sys/init > /helpers/keys.json root_token=$(cat /helpers/keys.json | jq -r '.root_token') unseal_vault