open-nomad/scripts/install_consul.sh

16 lines
316 B
Bash
Raw Normal View History

2016-08-16 17:15:06 +00:00
#!/bin/bash
set -ex
2016-10-06 21:09:39 +00:00
CONSUL_VERSION="0.7.0"
2016-08-16 17:15:06 +00:00
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}