From d84a8ed282b6ae8ea3e12ac34879d999e6423f2a Mon Sep 17 00:00:00 2001 From: "Jiamei.Xie" Date: Fri, 11 Oct 2019 10:50:37 +0000 Subject: [PATCH] Modify ETCD_BINDIR for aarch64 Modify ETCD_BINDIR in local example env script for aarch64 Change-Id: I1a9d6591316b60f1c7672f4c0eb4906f6dc65de7 Signed-off-by: Jiamei.Xie --- examples/local/env.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/local/env.sh b/examples/local/env.sh index 2c84798747f..1f07d7a77c5 100644 --- a/examples/local/env.sh +++ b/examples/local/env.sh @@ -64,7 +64,11 @@ else ETCD_SERVER="localhost:2379" ETCD_VERSION=$(cat "${VTROOT}/dist/etcd/.installed_version") - ETCD_BINDIR="${VTROOT}/dist/etcd/etcd-${ETCD_VERSION}-${etcd_platform}-amd64/" + if [ "$(arch)" == aarch64 ];then + ETCD_BINDIR="${VTROOT}/dist/etcd/etcd-${ETCD_VERSION}-${etcd_platform}-arm64/" + else + ETCD_BINDIR="${VTROOT}/dist/etcd/etcd-${ETCD_VERSION}-${etcd_platform}-amd64/" + fi TOPOLOGY_FLAGS="-topo_implementation etcd2 -topo_global_server_address $ETCD_SERVER -topo_global_root /vitess/global" mkdir -p "${VTDATAROOT}/tmp"