mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
ensure elasticsearch is up
This commit is contained in:
@@ -156,9 +156,11 @@ if [[ -f $STATE_FILE_SUCCESS ]]; then
|
|||||||
# Write out file for generating index/component/ilm templates
|
# Write out file for generating index/component/ilm templates
|
||||||
latest_installed_package_list=$(elastic_fleet_installed_packages)
|
latest_installed_package_list=$(elastic_fleet_installed_packages)
|
||||||
echo $latest_installed_package_list | jq '[.items[] | {name: .name, es_index_patterns: .dataStreams}]' > $PACKAGE_COMPONENTS
|
echo $latest_installed_package_list | jq '[.items[] | {name: .name, es_index_patterns: .dataStreams}]' > $PACKAGE_COMPONENTS
|
||||||
# Refresh installed component template list
|
if retry 3 1 "so-elasticsearch-query / --fail --output /dev/null"; then
|
||||||
latest_component_templates_list=$(so-elasticsearch-query _component_template | jq '.component_templates[] | .name' | jq -s '.')
|
# Refresh installed component template list
|
||||||
echo $latest_component_templates_list > $COMPONENT_TEMPLATES
|
latest_component_templates_list=$(so-elasticsearch-query _component_template | jq '.component_templates[] | .name' | jq -s '.')
|
||||||
|
echo $latest_component_templates_list > $COMPONENT_TEMPLATES
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
# This is the installation of add-on integrations and upgrade of existing integrations. Exiting without error, next highstate will attempt to re-run.
|
# This is the installation of add-on integrations and upgrade of existing integrations. Exiting without error, next highstate will attempt to re-run.
|
||||||
|
|||||||
Reference in New Issue
Block a user