From 9d0a608c19ab8871b4cc0133411424d5d372e63b Mon Sep 17 00:00:00 2001 From: amir-climy Date: Thu, 21 May 2026 09:33:31 +0800 Subject: [PATCH] fix(install): make compose.yaml the single source of truth for image name Remove TRITON_MANAGE_IMAGE from env.template so the name only lives in one place (compose.yaml default). The --image flag still works by appending to .env, which overrides the compose default. This prevents the hyphen/no-hyphen typo from recurring. Co-Authored-By: Claude Sonnet 4.6 --- manage-server/env.template | 4 ++-- manage-server/install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manage-server/env.template b/manage-server/env.template index fb35155..ce1e011 100644 --- a/manage-server/env.template +++ b/manage-server/env.template @@ -54,5 +54,5 @@ TLS_CERT_HOST_DIR=/etc/triton/tls # ─── Sessions ──────────────────────────────────────────────────────────── TRITON_MANAGE_SESSION_TTL=24h -# ─── Image ─────────────────────────────────────────────────────────────── -TRITON_MANAGE_IMAGE=ghcr.io/primatekuntech/triton-manageserver:latest +# ─── Image (override only — default is set in compose.yaml) ────────────── +# TRITON_MANAGE_IMAGE=ghcr.io/primatekuntech/triton-manageserver:latest diff --git a/manage-server/install.sh b/manage-server/install.sh index 7f66d9e..7d87287 100755 --- a/manage-server/install.sh +++ b/manage-server/install.sh @@ -75,7 +75,7 @@ if [[ ! -f "$ENV_FILE" ]]; then [[ -n "$GATEWAY_HOST" ]] && sed -i "s|^TRITON_MANAGE_GATEWAY_HOSTNAME=.*|TRITON_MANAGE_GATEWAY_HOSTNAME=$GATEWAY_HOST|" "$ENV_FILE" [[ -n "$HOST_IP" ]] && sed -i "s|^TRITON_MANAGE_HOST_IP=.*|TRITON_MANAGE_HOST_IP=$HOST_IP|" "$ENV_FILE" - [[ -n "$IMAGE" ]] && sed -i "s|^TRITON_MANAGE_IMAGE=.*|TRITON_MANAGE_IMAGE=$IMAGE|" "$ENV_FILE" + [[ -n "$IMAGE" ]] && printf '\nTRITON_MANAGE_IMAGE=%s\n' "$IMAGE" >> "$ENV_FILE" info ".env created at $ENV_FILE" info " back this up — it contains the JWT signing key, worker key, and vault key"