open-nomad/scripts/install_vault.sh
2016-10-06 14:09:39 -07:00

16 lines
321 B
Bash
Executable file

#!/bin/bash
set -ex
VAULT_VERSION="0.6.2"
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}