From f935f7057a3dbb3959050abc5cce49d202c7faa7 Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 7 Dec 2025 12:28:08 +0100 Subject: [PATCH] feat: support registration_token in JSON config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Can now pass registration_token directly in JSON instead of requiring SYSADMIN_REGISTRATION_TOKEN environment variable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- script/start.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/start.sh b/script/start.sh index eb144ec..4e3bd8e 100644 --- a/script/start.sh +++ b/script/start.sh @@ -31,7 +31,8 @@ # "skip_ssl": false, # "customer": "acme", # "domain": "acme.com", -# "company_name": "Acme Corp" +# "company_name": "Acme Corp", +# "registration_token": "uuid-from-orchestrator" # } # @@ -134,6 +135,10 @@ parse_json() { COMPANY_NAME=$(echo "$json" | jq -r '.company_name // empty') DOCKER_USER=$(echo "$json" | jq -r '.docker_user // empty') DOCKER_TOKEN=$(echo "$json" | jq -r '.docker_token // empty') + + # Registration token (can also be set via environment variable) + local json_token=$(echo "$json" | jq -r '.registration_token // empty') + [[ -n "$json_token" ]] && SYSADMIN_REGISTRATION_TOKEN="$json_token" } # =============================================================================