Skip to content

Commit

Permalink
Merge pull request #6 from moy2010/change-no-analytics-to-env-variable
Browse files Browse the repository at this point in the history
Use an env variable to disable analytics
  • Loading branch information
moy2010 committed Mar 7, 2022
2 parents a14cb72 + 86fee86 commit 3050cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start-meilisearch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [ -z "$MEILISEARCH_API_KEY" ]; then
echo " - version [$MEILISEARCH_VERSION]"
echo ""

docker run --name meilisearch --publish $MEILISEARCH_PORT:$MEILISEARCH_PORT --detach --volume "$(pwd)/data.ms:/data.ms" getmeili/meilisearch:$MEILISEARCH_VERSION --no-analytics=true
docker run --name meilisearch --publish $MEILISEARCH_PORT:$MEILISEARCH_PORT -e MEILI_NO_ANALYTICS=true --detach --volume "$(pwd)/data.ms:/data.ms" getmeili/meilisearch:$MEILISEARCH_VERSION
echo "::endgroup::"

return
Expand All @@ -23,5 +23,5 @@ echo " - version [$MEILISEARCH_VERSION]"
echo " - api key [$MEILISEARCH_API_KEY]"
echo ""

docker run --name meilisearch --publish $MEILISEARCH_PORT:$MEILISEARCH_PORT -e MEILI_MASTER_KEY="$MEILISEARCH_API_KEY" --detach --volume "$(pwd)/data.ms:/data.ms" getmeili/meilisearch:$MEILISEARCH_VERSION --no-analytics=true
docker run --name meilisearch --publish $MEILISEARCH_PORT:$MEILISEARCH_PORT -e MEILI_MASTER_KEY="$MEILISEARCH_API_KEY" MEILI_NO_ANALYTICS=true --detach --volume "$(pwd)/data.ms:/data.ms" getmeili/meilisearch:$MEILISEARCH_VERSION
echo "::endgroup::"

0 comments on commit 3050cbc

Please sign in to comment.