This commit is contained in:
Vassiliy Yegorov
2022-07-28 01:06:20 +07:00
parent 66a730733d
commit 4befb1a82f

View File

@@ -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