Skip to content

Instantly share code, notes, and snippets.

@arainho
Last active June 24, 2020 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arainho/e98dfe30054ad71ff8bbeef9d15ffd3a to your computer and use it in GitHub Desktop.
Save arainho/e98dfe30054ad71ff8bbeef9d15ffd3a to your computer and use it in GitHub Desktop.
Script to install Vault
#!/usr/bin/env bash
export VERSION=1.4.2
wget https://releases.hashicorp.com/vault/${VERSION}/vault_${VERSION}_linux_amd64.zip
# unzip the package and remove the zip file:
unzip vault_${VERSION}_linux_amd64.zip && rm vault_${VERSION}_linux_amd64.zip
# vault runs as a single binary named vault, other files in the package can be safely removed
ls -al | grep vault
# finally, ensure vault binary is available on the PATH
install -c -m 0755 vault /usr/bin
# verify the vault version
vault version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment