mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-21 10:50:10 +00:00
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:
committed by
GitHub
parent
b5dad7927a
commit
29bac9dbf9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user