From 13d195e612f0099ef86383d2d27d0f3d7d7d071a Mon Sep 17 00:00:00 2001 From: Justin Ashworth Date: Mon, 21 Nov 2022 19:05:26 -0500 Subject: [PATCH] MB-54610 - Found an issue with installer scripts and aarch64 * When our images use the installer, they do not specify if the platform is aarch64 or x86_64. The installer should check and download the appropriate installer --- .gitignore | 3 ++- installers/installer.sh | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 202cd28..ca8b45d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /isos/ *.iso /build -/builder \ No newline at end of file +/builder +.DS_Store \ No newline at end of file diff --git a/installers/installer.sh b/installers/installer.sh index 0cbfa08..07fc287 100644 --- a/installers/installer.sh +++ b/installers/installer.sh @@ -382,8 +382,10 @@ function __install_couchbase_amazon() { # examples from packages.couchbase.com #https://packages.couchbase.com/releases/7.0.0-beta/couchbase-server-enterprise-7.0.0-beta-amzn2.x86_64.rpm #https://packages.couchbase.com/releases/6.6.2/couchbase-server-enterprise-6.6.2-amzn2.x86_64.rpm + #https://packages.couchbase.com/releases/6.6.2/couchbase-server-enterprise-7.1.3-amzn2.aarch64.rpm + ARCH=$(uname -m) wget -O "${tmp}/couchbase-server-enterprise-${version}-amzn2.x86_64.rpm" \ - "https://packages.couchbase.com/releases/${version}/couchbase-server-enterprise-${version}-amzn2.x86_64.rpm" -q + "https://packages.couchbase.com/releases/${version}/couchbase-server-enterprise-${version}-amzn2.${ARCH}.rpm" -q __log_debug "Beginning Installation" yum install "${tmp}/couchbase-server-enterprise-${version}-amzn2.x86_64.rpm" -y -q }