From 29bac9dbf904401ffb370e984bb867b34d2066ad Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 15:36:26 +0000 Subject: [PATCH] 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> --- Containers/fulltextsearch/healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/fulltextsearch/healthcheck.sh b/Containers/fulltextsearch/healthcheck.sh index bdc4d92b..eca504c2 100644 --- a/Containers/fulltextsearch/healthcheck.sh +++ b/Containers/fulltextsearch/healthcheck.sh @@ -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