From 89e19f368cbcd336b4b5d468288faee3de81c18d Mon Sep 17 00:00:00 2001 From: Rob Fuller <679319+mubix@users.noreply.github.com> Date: Tue, 24 Feb 2026 09:32:23 -0500 Subject: [PATCH 1/2] fix ARCH detection and normalization --- deployments/cli/community/install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/deployments/cli/community/install.sh b/deployments/cli/community/install.sh index 582aa839413..55f77cd54c4 100755 --- a/deployments/cli/community/install.sh +++ b/deployments/cli/community/install.sh @@ -13,7 +13,6 @@ export FALLBACK_DOWNLOAD_URL="https://raw.githubusercontent.com/$GH_REPO/$BRANCH CPU_ARCH=$(uname -m) OS_NAME=$(uname) -UPPER_CPU_ARCH=$(tr '[:lower:]' '[:upper:]' <<< "$CPU_ARCH") mkdir -p $PLANE_INSTALL_DIR/archive DOCKER_FILE_PATH=$PLANE_INSTALL_DIR/docker-compose.yaml @@ -218,6 +217,10 @@ function install() { if [ "$APP_RELEASE" == "stable" ]; then export APP_RELEASE=$(checkLatestRelease) + if [ -z "$APP_RELEASE" ]; then + echo "Failed to determine the latest release. Exiting..." + exit 1 + fi fi local build_image=$(initialize) @@ -677,12 +680,16 @@ else COMPOSE_CMD="docker compose" fi +# Normalize CPU architecture names to match Docker manifest values if [ "$CPU_ARCH" == "x86_64" ] || [ "$CPU_ARCH" == "amd64" ]; then CPU_ARCH="amd64" elif [ "$CPU_ARCH" == "aarch64" ] || [ "$CPU_ARCH" == "arm64" ]; then CPU_ARCH="arm64" fi +# Set UPPER_CPU_ARCH after normalization so display messages match Docker architecture names +UPPER_CPU_ARCH=$(tr '[:lower:]' '[:upper:]' <<< "$CPU_ARCH") + if [ -f "$DOCKER_ENV_PATH" ]; then DOCKERHUB_USER=$(getEnvValue "DOCKERHUB_USER" "$DOCKER_ENV_PATH") APP_RELEASE=$(getEnvValue "APP_RELEASE" "$DOCKER_ENV_PATH") @@ -711,4 +718,4 @@ if [ -f "$DOCKER_ENV_PATH" ]; then fi print_header -askForAction "$@" +askForAction "$@" \ No newline at end of file From 08e20be60eea7bea556d2f9f8f6013e1bbfeb81a Mon Sep 17 00:00:00 2001 From: Rob Fuller <679319+mubix@users.noreply.github.com> Date: Tue, 24 Feb 2026 20:00:59 -0500 Subject: [PATCH 2/2] Implement error check for latest release in upgrade Add error handling for missing latest release in upgrade function. --- deployments/cli/community/install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deployments/cli/community/install.sh b/deployments/cli/community/install.sh index 55f77cd54c4..d79efd0561b 100755 --- a/deployments/cli/community/install.sh +++ b/deployments/cli/community/install.sh @@ -428,7 +428,10 @@ function restartServices() { } function upgrade() { local latest_release=$(checkLatestRelease) - + if [ -z "$latest_release" ]; then + echo "Failed to determine the latest release. Exiting..." + exit 1 + fi echo "" echo "Current release: $APP_RELEASE" @@ -718,4 +721,4 @@ if [ -f "$DOCKER_ENV_PATH" ]; then fi print_header -askForAction "$@" \ No newline at end of file +askForAction "$@"