From 1d635a9338eadab0f038365061ca0e72b34076a7 Mon Sep 17 00:00:00 2001 From: Amir Yahaya Date: Wed, 20 May 2026 07:59:56 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20remove=20--license-server-url=20flag=20?= =?UTF-8?q?=E2=80=94=20URL=20now=20baked=20into=20binary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The License Server URL (https://license.tritonscans.com) is compiled into the manage-server binary at release time. No need to pass it during installation. Co-Authored-By: Claude Sonnet 4.6 --- README.md | 1 - manage-server/install.sh | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 9ca0fe8..a6e356c 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,6 @@ curl -fsSL https://raw.githubusercontent.com/primatekuntech/triton-install/main/ | Flag | Description | |------|-------------| | `--license-file PATH` | Path to `license.lic` from your vendor bundle. **Required.** | -| `--license-server-url URL` | License Server URL for ongoing heartbeats (optional, omit for air-gap). | | `--gateway-hostname HOST` | Agent mTLS hostname (defaults to current FQDN). | | `--manage-host-ip IP` | Host LAN IP for "+ This machine" auto-registration. | | `--port PORT` | Host port for the web UI (default: `8082`). | diff --git a/manage-server/install.sh b/manage-server/install.sh index b3f3ca0..9a80fca 100755 --- a/manage-server/install.sh +++ b/manage-server/install.sh @@ -13,7 +13,6 @@ # # Flags: # --license-file PATH Path to license.lic from your vendor bundle. Required. -# --license-server-url URL License Server URL for ongoing heartbeats (optional). # --gateway-hostname HOST Agent mTLS hostname (defaults to current FQDN). # --manage-host-ip IP Host LAN IP — used for "+ This machine". # --port PORT Host port for the web UI (default: 8082). @@ -29,7 +28,6 @@ die() { printf '[manage-server] error: %s\n' "$*" >&2; exit 1; } # ── arg parsing ────────────────────────────────────────────────────────── LICENSE_FILE="" -LICENSE_SERVER_URL="" GATEWAY_HOST="" HOST_IP="" PORT="" @@ -38,7 +36,6 @@ NO_TLS=0 while [[ $# -gt 0 ]]; do case "$1" in --license-file) LICENSE_FILE="$2"; shift 2 ;; - --license-server-url) LICENSE_SERVER_URL="$2"; shift 2 ;; --gateway-hostname) GATEWAY_HOST="$2"; shift 2 ;; --manage-host-ip) HOST_IP="$2"; shift 2 ;; --port) PORT="$2"; shift 2 ;; @@ -95,8 +92,7 @@ if [[ ! -f "$ENV_FILE" ]]; then sed -i "s|^TRITON_LICENSE_KEY=.*|TRITON_LICENSE_KEY=$LICENSE_TOKEN|" "$ENV_FILE" info "licence configured" - [[ -n "$LICENSE_SERVER_URL" ]] && sed -i "s|^TRITON_LICENSE_SERVER_URL=.*|TRITON_LICENSE_SERVER_URL=$LICENSE_SERVER_URL|" "$ENV_FILE" - [[ -n "$GATEWAY_HOST" ]] && sed -i "s|^TRITON_MANAGE_GATEWAY_HOSTNAME=.*|TRITON_MANAGE_GATEWAY_HOSTNAME=$GATEWAY_HOST|" "$ENV_FILE" + [[ -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 "$PORT" ]] && sed -i "s|^TRITON_MANAGE_HOST_PORT=.*|TRITON_MANAGE_HOST_PORT=$PORT|" "$ENV_FILE" [[ -n "$IMAGE" ]] && sed -i "s|^TRITON_MANAGE_IMAGE=.*|TRITON_MANAGE_IMAGE=$IMAGE|" "$ENV_FILE"