Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions deployments/cli/community/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -425,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"

Expand Down Expand Up @@ -677,12 +683,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")
Expand Down