2016-08-16 17:15:06 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2016-08-25 20:13:20 +00:00
|
|
|
VAULT_VERSION="0.6.1"
|
2016-08-16 17:15:06 +00:00
|
|
|
CURDIR=`pwd`
|
|
|
|
|
|
|
|
echo Fetching Vault ${VAULT_VERSION}...
|
|
|
|
cd /tmp/
|
|
|
|
wget https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip -O vault.zip
|
|
|
|
echo Installing Vault...
|
|
|
|
unzip vault.zip
|
|
|
|
sudo chmod +x vault
|
|
|
|
sudo mv vault /usr/bin/vault
|
|
|
|
cd ${CURDIR}
|