diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ffda5b8c..b6138039 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -142,7 +142,7 @@ jobs: - name: Check Wazuh indexer start run: | sleep 120 - status_green="`curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:admin -k -s | grep "green|yellow" | wc -l`" + status_green="`curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:admin -k -s | grep -E "green|yellow" | wc -l`" if [[ $status_green -eq 1 ]]; then curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:admin -k -s else @@ -150,7 +150,7 @@ jobs: exit 1 fi status_index="`curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:admin -k -s | wc -l`" - status_index_green="`curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:admin -k -s | grep "green|yellow" | wc -l`" + status_index_green="`curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:admin -k -s | grep -E "green|yellow" | wc -l`" if [[ $status_index_green -eq $status_index ]]; then curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:admin -k -s else