Fix consul dependency issue for arm.

Make the booststrap.sh download the correct consul for aarch64

Change-Id: I7c96f7596f6c6a7496e34715d477185d55db5324
Signed-off-by: Jiamei.Xie <Jiamei.Xie@arm.com>
This commit is contained in:
Jiamei.Xie 2019-10-11 09:06:00 +00:00
Родитель 590a06f927
Коммит 86125be13c
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -228,9 +228,15 @@ function install_consul() {
Darwin) local platform=darwin;;
esac
case $(arch) in
aarch64) local target=arm64;;
x86_64) local target=amd64;;
*) echo "ERROR: unsupported architecture"; exit 1;;
esac
download_url=https://releases.hashicorp.com/consul
wget "${download_url}/${version}/consul_${version}_${platform}_amd64.zip"
unzip "consul_${version}_${platform}_amd64.zip"
wget "${download_url}/${version}/consul_${version}_${platform}_${target}.zip"
unzip "consul_${version}_${platform}_${target}.zip"
ln -snf "$dist/consul" "$VTROOT/bin/consul"
}
install_dep "Consul" "1.4.0" "$VTROOT/dist/consul" install_consul