Files
nextcloud/Containers/fulltextsearch/healthcheck.sh
2026-04-24 10:34:44 +02:00

8 lines
185 B
Bash

#!/bin/bash
if [ "$AIO_LOG_LEVEL" = 'debug' ]; then
set -x
fi
curl -fs "http://127.0.0.1:9200/_cluster/health?filter_path=status" | grep -qE '"status":"(green|yellow)"' || exit 1