forked from wazuh/wazuh-docker
Remove goss old configuration
This commit is contained in:
@@ -142,7 +142,7 @@ jobs:
|
|||||||
- name: Check Wazuh indexer start
|
- name: Check Wazuh indexer start
|
||||||
run: |
|
run: |
|
||||||
sleep 120
|
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
|
if [[ $status_green -eq 1 ]]; then
|
||||||
curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:admin -k -s
|
curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:admin -k -s
|
||||||
else
|
else
|
||||||
@@ -150,7 +150,7 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
status_index="`curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:admin -k -s | wc -l`"
|
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
|
if [[ $status_index_green -eq $status_index ]]; then
|
||||||
curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:admin -k -s
|
curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:admin -k -s
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user