Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

bootstrap-aws: Support aarch64.

Alex Vandiver74b804880ed3
diff --git a/tools/setup/bootstrap-awscli.sh b/tools/setup/bootstrap-awscli.sh
index 56a7161c908..3f4a633d775 100644
--- a/tools/setup/bootstrap-awscli.sh
+++ b/tools/setup/bootstrap-awscli.sh
@@ -1,13 +1,22 @@
# shellcheck shell=bash
+ARCH=$(uname -m)
+
AWS_CLI_VERSION="2.0.30"
-AWS_CLI_SHA="7ee475f22c1b35cc9e53affbf96a9ffce91706e154a9441d0d39cbf8366b718e"
+if [ "$ARCH" == "x86_64" ]; then
+ AWS_CLI_SHA="7ee475f22c1b35cc9e53affbf96a9ffce91706e154a9441d0d39cbf8366b718e"
+elif [ "$ARCH" == "aarch64" ]; then
+ AWS_CLI_SHA="624ebb04705d4909eb0d56d467fe6b8b5c53a8c59375ed520e70236120125077"
+else
+ echo "Unsupported architecture: $ARCH"
+ exit 1
+fi
if [ ! -d "/srv/zulip-aws-tools/v2/$AWS_CLI_VERSION" ]; then
mkdir -p /srv/zulip-aws-tools
cd /srv/zulip-aws-tools || exit 1
rm -rf awscli.zip awscli.zip.sha256 aws/
- curl -fL "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-$AWS_CLI_VERSION.zip" -o awscli.zip
+ curl -fL "https://awscli.amazonaws.com/awscli-exe-linux-$ARCH-$AWS_CLI_VERSION.zip" -o awscli.zip
echo "$AWS_CLI_SHA awscli.zip" >awscli.zip.sha256
sha256sum -c awscli.zip.sha256
unzip -q awscli.zip