Update docker-entrypoint.sh
This commit is contained in:
parent
351c90ed86
commit
b8c641997e
@ -7,7 +7,6 @@ set -e
|
|||||||
: "${ELASTICSEARCH_PORT:=9200}"
|
: "${ELASTICSEARCH_PORT:=9200}"
|
||||||
: "${ELASTICSEARCH_SCHEMA:=http}"
|
: "${ELASTICSEARCH_SCHEMA:=http}"
|
||||||
: "${ELASTICSEARCH_SSL_VERIFY:=true}"
|
: "${ELASTICSEARCH_SSL_VERIFY:=true}"
|
||||||
: "${ELASTICSEARCH_PURGE:=false}"
|
|
||||||
: "${MEMCACHED_HOST:=zammad-memcached}"
|
: "${MEMCACHED_HOST:=zammad-memcached}"
|
||||||
: "${MEMCACHED_PORT:=11211}"
|
: "${MEMCACHED_PORT:=11211}"
|
||||||
: "${POSTGRESQL_HOST:=zammad-postgresql}"
|
: "${POSTGRESQL_HOST:=zammad-postgresql}"
|
||||||
@ -100,11 +99,6 @@ if [ "$1" = 'zammad-init' ]; then
|
|||||||
SSL_SKIP_VERIFY=""
|
SSL_SKIP_VERIFY=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${ELASTICSEARCH_PURGE}" == "true" ]; then
|
|
||||||
echo "deleting all es indicies..."
|
|
||||||
curl -XDELETE ${SSL_SKIP_VERIFY} ${ELASTICSEARCH_SCHEMA}://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/*
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! curl -s ${SSL_SKIP_VERIFY} ${ELASTICSEARCH_SCHEMA}://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices | grep -q zammad; then
|
if ! curl -s ${SSL_SKIP_VERIFY} ${ELASTICSEARCH_SCHEMA}://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices | grep -q zammad; then
|
||||||
echo "rebuilding es searchindex..."
|
echo "rebuilding es searchindex..."
|
||||||
bundle exec rake searchindex:rebuild
|
bundle exec rake searchindex:rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user