fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
apk add jq curl
|
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')
|
root_token=$(cat /helpers/keys.json | jq -r '.root_token')
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ then
|
|||||||
unseal_vault
|
unseal_vault
|
||||||
else
|
else
|
||||||
echo "Vault not initialized"
|
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')
|
root_token=$(cat /helpers/keys.json | jq -r '.root_token')
|
||||||
|
|
||||||
unseal_vault
|
unseal_vault
|
||||||
|
Reference in New Issue
Block a user