open-nomad/scripts/install_consul.sh
2016-08-17 16:25:38 -07:00

16 lines
316 B
Bash
Executable file

#!/bin/bash
set -ex
CONSUL_VERSION="0.6.4"
CURDIR=`pwd`
echo Fetching Consul...
cd /tmp/
wget https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip -O consul.zip
echo Installing Consul...
unzip consul.zip
sudo chmod +x consul
sudo mv consul /usr/bin/consul
cd ${CURDIR}