Exit if unable to communicate with Elasticsearch

This commit is contained in:
Wes
2023-11-06 13:16:35 +00:00
parent ef1dfc3152
commit 74eda68d84

View File

@@ -37,6 +37,7 @@ if [ ! -f /opt/so/state/espipelines.txt ]; then
echo echo
echo -e "Connection attempt timed out. Unable to connect to ElasticSearch. \nPlease try: \n -checking log(s) in /var/log/elasticsearch/\n -running 'sudo docker ps' \n -running 'sudo so-elastic-restart'" echo -e "Connection attempt timed out. Unable to connect to ElasticSearch. \nPlease try: \n -checking log(s) in /var/log/elasticsearch/\n -running 'sudo docker ps' \n -running 'sudo so-elastic-restart'"
echo echo
exit 1
fi fi
cd ${ELASTICSEARCH_INGEST_PIPELINES} cd ${ELASTICSEARCH_INGEST_PIPELINES}