Merge pull request #9975 from Security-Onion-Solutions/kilo

catch errors and exit with proper exit code
This commit is contained in:
Jason Ertel
2023-03-21 10:51:36 -04:00
committed by GitHub

View File

@@ -31,8 +31,11 @@ if [ "$ELASTICSEARCH_CONNECTED" == "no" ]; then
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
exit 1
fi
set -e
cd ${ELASTICSEARCH_TEMPLATES}/component/ecs
echo "Loading ECS component templates..."