From 1bc0e3c8311033fb989fec8e21e1d9bcca81dbb5 Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Sat, 6 Mar 2021 11:14:04 +0100 Subject: [PATCH] Add arm64 support to linux install script Signed-off-by: Aaron Dewes --- scripts/install/install_linux.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install/install_linux.sh b/scripts/install/install_linux.sh index ace08caa9..54126d37b 100644 --- a/scripts/install/install_linux.sh +++ b/scripts/install/install_linux.sh @@ -106,7 +106,11 @@ if ! [ "$(command -v curl)" ]; then exit 1 fi -DOWNLOAD_URL=${DOWNLOAD_URL:-$(curl -s ${RELEASE_URL} | grep "browser_download_url.*docker-linux-amd64.tar.gz" | cut -d : -f 2,3)} +if [ "$(uname -m)" = "aarch64" ]; then + DOWNLOAD_URL=${DOWNLOAD_URL:-$(curl -s ${RELEASE_URL} | grep "browser_download_url.*docker-linux-arm64.tar.gz" | cut -d : -f 2,3)} +else + DOWNLOAD_URL=${DOWNLOAD_URL:-$(curl -s ${RELEASE_URL} | grep "browser_download_url.*docker-linux-amd64.tar.gz" | cut -d : -f 2,3)} +fi # Check if the Compose CLI is already installed if [ $(is_new_cli "docker") -eq 1 ]; then