Skip to content

Commit

Permalink
Merge pull request hashicorp#206 from xueshanf/patch-1
Browse files Browse the repository at this point in the history
Update setup_vault.sh to make it work with v0.6.1
  • Loading branch information
bensojona authored Oct 18, 2016
2 parents bceb4dc + 76554a0 commit 1d401ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packer/config/vault/scripts/setup_vault.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ ! $(cget root-token) ]; then

# Store master keys in consul for operator to retrieve and remove
COUNTER=1
cat /tmp/vault.init | grep '^Key' | awk '{print $3}' | for key in $(cat -); do
cat /tmp/vault.init | grep '\(hex\)' | awk '{print $6}' | for key in $(cat -); do
curl -fX PUT 127.0.0.1:8500/v1/kv/service/vault/unseal-key-$COUNTER -d $key
COUNTER=$((COUNTER + 1))
done
Expand Down

0 comments on commit 1d401ca

Please sign in to comment.