feat: remove --license-server-url flag — URL now baked into binary
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 <noreply@anthropic.com>
This commit is contained in:
parent
fb80b3e21f
commit
1d635a9338
2 changed files with 1 additions and 6 deletions
|
|
@ -36,7 +36,6 @@ curl -fsSL https://raw.githubusercontent.com/primatekuntech/triton-install/main/
|
||||||
| Flag | Description |
|
| Flag | Description |
|
||||||
|------|-------------|
|
|------|-------------|
|
||||||
| `--license-file PATH` | Path to `license.lic` from your vendor bundle. **Required.** |
|
| `--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). |
|
| `--gateway-hostname HOST` | Agent mTLS hostname (defaults to current FQDN). |
|
||||||
| `--manage-host-ip IP` | Host LAN IP for "+ This machine" auto-registration. |
|
| `--manage-host-ip IP` | Host LAN IP for "+ This machine" auto-registration. |
|
||||||
| `--port PORT` | Host port for the web UI (default: `8082`). |
|
| `--port PORT` | Host port for the web UI (default: `8082`). |
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@
|
||||||
#
|
#
|
||||||
# Flags:
|
# Flags:
|
||||||
# --license-file PATH Path to license.lic from your vendor bundle. Required.
|
# --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).
|
# --gateway-hostname HOST Agent mTLS hostname (defaults to current FQDN).
|
||||||
# --manage-host-ip IP Host LAN IP — used for "+ This machine".
|
# --manage-host-ip IP Host LAN IP — used for "+ This machine".
|
||||||
# --port PORT Host port for the web UI (default: 8082).
|
# --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 ──────────────────────────────────────────────────────────
|
# ── arg parsing ──────────────────────────────────────────────────────────
|
||||||
LICENSE_FILE=""
|
LICENSE_FILE=""
|
||||||
LICENSE_SERVER_URL=""
|
|
||||||
GATEWAY_HOST=""
|
GATEWAY_HOST=""
|
||||||
HOST_IP=""
|
HOST_IP=""
|
||||||
PORT=""
|
PORT=""
|
||||||
|
|
@ -38,7 +36,6 @@ NO_TLS=0
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--license-file) LICENSE_FILE="$2"; shift 2 ;;
|
--license-file) LICENSE_FILE="$2"; shift 2 ;;
|
||||||
--license-server-url) LICENSE_SERVER_URL="$2"; shift 2 ;;
|
|
||||||
--gateway-hostname) GATEWAY_HOST="$2"; shift 2 ;;
|
--gateway-hostname) GATEWAY_HOST="$2"; shift 2 ;;
|
||||||
--manage-host-ip) HOST_IP="$2"; shift 2 ;;
|
--manage-host-ip) HOST_IP="$2"; shift 2 ;;
|
||||||
--port) PORT="$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"
|
sed -i "s|^TRITON_LICENSE_KEY=.*|TRITON_LICENSE_KEY=$LICENSE_TOKEN|" "$ENV_FILE"
|
||||||
info "licence configured"
|
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 "$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 "$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"
|
[[ -n "$IMAGE" ]] && sed -i "s|^TRITON_MANAGE_IMAGE=.*|TRITON_MANAGE_IMAGE=$IMAGE|" "$ENV_FILE"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue