Update Vault demo to v1.10.0
This commit is contained in:
parent
171faccea7
commit
7bbe7b65fe
@ -3,15 +3,16 @@ set -e
|
|||||||
|
|
||||||
src_dir="./source_code"
|
src_dir="./source_code"
|
||||||
vault="$src_dir/bin/vault"
|
vault="$src_dir/bin/vault"
|
||||||
|
vault_version="1.10.0"
|
||||||
|
|
||||||
if [ -f "$vault" ]; then
|
if [ -f "$vault" ]; then
|
||||||
echo "Warning: the current working directory has Vault already downloaded and built"
|
echo "Warning: the current working directory has Vault already downloaded and built"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# download the source code of Vault v1.7.0
|
# download the source code of Vault
|
||||||
wget https://github.com/hashicorp/vault/archive/refs/tags/v1.7.0.tar.gz
|
wget https://github.com/hashicorp/vault/archive/refs/tags/v"$vault_version".tar.gz
|
||||||
mkdir -p $src_dir && tar -xvzf v1.7.0.tar.gz -C $src_dir --strip-components=1
|
mkdir -p $src_dir && tar -xvzf v"$vault_version".tar.gz -C $src_dir --strip-components=1
|
||||||
|
|
||||||
# build Vault executable
|
# build Vault executable
|
||||||
pushd $src_dir
|
pushd $src_dir
|
||||||
|
Loading…
Reference in New Issue
Block a user