Last active
June 24, 2020 09:11
-
-
Save arainho/e98dfe30054ad71ff8bbeef9d15ffd3a to your computer and use it in GitHub Desktop.
Script to install Vault
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
#!/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