From e1e85c5ca995bfb2f1a79592bd3cc9d0c8b4daac Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Apr 2026 12:04:58 +0000 Subject: [PATCH] nc entrypoint: include HTTP status in Windmill auth failure message Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/b977bac7-8311-4877-ba23-92438ed0a4fe Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com> --- Containers/nextcloud/entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index d78c8c89..26256e19 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -1102,8 +1102,9 @@ if [ "$WINDMILL_ENABLED" = 'yes' ]; then php /var/www/html/occ config:app:set windmill windmill_url --value="https://$NC_DOMAIN/windmill" php /var/www/html/occ config:app:set windmill windmill_instance_url --value="http://$WINDMILL_HOST:8000" php /var/www/html/occ config:app:set windmill windmill_admin_token --value="$WINDMILL_SECRET" - if ! curl -sf -H "Authorization: Bearer $WINDMILL_SECRET" "http://$WINDMILL_HOST:8000/api/workspaces/list" > /dev/null; then - echo "Failed to authenticate against Windmill API. Exiting!" + WINDMILL_HTTP_STATUS="$(curl -s -o /dev/null -w '%{http_code}' -H "Authorization: Bearer $WINDMILL_SECRET" "http://$WINDMILL_HOST:8000/api/workspaces/list")" + if [ "$WINDMILL_HTTP_STATUS" != "200" ]; then + echo "Failed to authenticate against Windmill API (HTTP $WINDMILL_HTTP_STATUS). Exiting!" exit 1 fi else