From a26a0a4eeaa8719ca90474bd053dcb2041d088da Mon Sep 17 00:00:00 2001 From: MickLesk Date: Mon, 18 May 2026 18:05:46 +0200 Subject: [PATCH] fix(fleet): use correct setup endpoint /api/v1/setup instead of /api/latest/fleet/setup --- ct/fleet.sh | 2 +- install/fleet-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/fleet.sh b/ct/fleet.sh index 491a3e09..89564429 100644 --- a/ct/fleet.sh +++ b/ct/fleet.sh @@ -59,4 +59,4 @@ echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}" echo -e "${INFO}${YW} Admin Email:${CL} ${BGN}admin@fleet.local${CL}" -echo -e "${INFO}${YW} Admin Password:${CL} ${BGN}grep FLEET_ADMIN_PASSWORD /opt/fleet/.env${CL}" +echo -e "${INFO}${YW} Admin Password:${CL} ${BGN}Check inside the container: cat /opt/fleet/.env${CL}" diff --git a/install/fleet-install.sh b/install/fleet-install.sh index 7ae77888..bde21041 100644 --- a/install/fleet-install.sh +++ b/install/fleet-install.sh @@ -75,7 +75,7 @@ until curl -sf "http://127.0.0.1:8080/healthz" >/dev/null 2>&1; do ELAPSED=$((ELAPSED + 2)) [[ $ELAPSED -ge 60 ]] && break done -SETUP_RESPONSE=$(curl -s -X POST "http://127.0.0.1:8080/api/latest/fleet/setup" \ +SETUP_RESPONSE=$(curl -s -X POST "http://127.0.0.1:8080/api/v1/setup" \ -H "Content-Type: application/json" \ -d "{\"admin\":{\"admin\":true,\"email\":\"${FLEET_ADMIN_EMAIL}\",\"name\":\"Admin\",\"password\":\"${FLEET_ADMIN_PASS}\"},\"org_info\":{\"org_name\":\"Fleet\",\"org_logo_url\":\"\"},\"server_url\":\"http://127.0.0.1:8080\"}") FLEET_TOKEN=$(echo "${SETUP_RESPONSE}" | grep -o '"token":"[^"]*"' | cut -d'"' -f4) || true