Browse Source

Make Elasticsearch directory before starting Elasticsearch

Connects https://github.com/pelias/docker/issues/33
fix-es5-startup
Julian Simioni 6 years ago
parent
commit
1810ec7564
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 2
      cmd/elastic.sh

2
cmd/elastic.sh

@ -3,7 +3,7 @@ set -e;
function elastic_schema_drop(){ compose_run 'schema' node scripts/drop_index "$@" || true; } 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_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; } function elastic_stop(){ compose_exec kill elasticsearch; }
register 'elastic' 'drop' 'delete elasticsearch index & all data' elastic_schema_drop register 'elastic' 'drop' 'delete elasticsearch index & all data' elastic_schema_drop

Loading…
Cancel
Save