From 1810ec7564159018f2906fc8640b3daa5db8351d Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Wed, 31 Oct 2018 11:06:56 -0400 Subject: [PATCH] Make Elasticsearch directory before starting Elasticsearch Connects https://github.com/pelias/docker/issues/33 --- cmd/elastic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/elastic.sh b/cmd/elastic.sh index 1828da3..33bdb12 100644 --- a/cmd/elastic.sh +++ b/cmd/elastic.sh @@ -3,7 +3,7 @@ set -e; function elastic_schema_drop(){ compose_run 'schema' node scripts/drop_index "$@" || true; } function elastic_schema_create(){ compose_run 'schema' node scripts/create_index; } -function elastic_start(){ compose_exec up -d elasticsearch; } +function elastic_start(){ mkdir -p $DATA_DIR/elasticsearch; compose_exec up -d elasticsearch; } function elastic_stop(){ compose_exec kill elasticsearch; } register 'elastic' 'drop' 'delete elasticsearch index & all data' elastic_schema_drop