Skip to content

Commit

Permalink
Merge pull request #55 from pelias/chown-elastic-dir
Browse files Browse the repository at this point in the history
docker: run chown on Elasticsearch directory
  • Loading branch information
orangejulius committed Nov 28, 2018
2 parents 7b4dacf + 434034b commit f724720
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/elastic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ 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(){ mkdir -p $DATA_DIR/elasticsearch; compose_exec up -d elasticsearch; }
function elastic_start(){
mkdir -p $DATA_DIR/elasticsearch
chown $DOCKER_USER $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
Expand Down

0 comments on commit f724720

Please sign in to comment.