fix(fulltextsearch): clarify healthcheck to explicitly accept green/yellow cluster status

Use filter_path=status to get a minimal JSON response and explicitly match
only green or yellow status (single-node clusters run yellow by design).
This is clearer and more robust than the inverted grep approach.

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/a036678d-a9f5-4db3-8cc6-3e3d52f4e97f

Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-17 15:36:26 +00:00
committed by GitHub
parent b5dad7927a
commit 29bac9dbf9

View File

@@ -1,3 +1,3 @@
#!/bin/bash
curl -fs "http://127.0.0.1:9200/_cluster/health" | grep -qv '"status":"red"' || exit 1
curl -fs "http://127.0.0.1:9200/_cluster/health?filter_path=status" | grep -qE '"status":"(green|yellow)"' || exit 1