Created
August 16, 2016 09:26
-
-
Save tony612/5531b9ac09057ef00f7369d693b92c59 to your computer and use it in GitHub Desktop.
install/update terraform on linux_amd64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# update_terraform.sh 0.6.16 | |
VERSION=$1 | |
wget -nc https://releases.hashicorp.com/terraform/$VERSION/terraform_$VERSION\_linux_amd64.zip | |
unzip -o terraform_$VERSION\_linux_amd64.zip -d terraform_$VERSION | |
rm /home/deployer/terraform | |
ln -s /home/deployer/terraform_$VERSION /home/deployer/terraform |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment