Skip to content

Commit b8c6419

Browse files
authored
Update docker-entrypoint.sh
1 parent 351c90e commit b8c6419

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

containers/zammad/docker-entrypoint.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ set -e
77
: "${ELASTICSEARCH_PORT:=9200}"
88
: "${ELASTICSEARCH_SCHEMA:=http}"
99
: "${ELASTICSEARCH_SSL_VERIFY:=true}"
10-
: "${ELASTICSEARCH_PURGE:=false}"
1110
: "${MEMCACHED_HOST:=zammad-memcached}"
1211
: "${MEMCACHED_PORT:=11211}"
1312
: "${POSTGRESQL_HOST:=zammad-postgresql}"
@@ -100,11 +99,6 @@ if [ "$1" = 'zammad-init' ]; then
10099
SSL_SKIP_VERIFY=""
101100
fi
102101

103-
if [ "${ELASTICSEARCH_PURGE}" == "true" ]; then
104-
echo "deleting all es indicies..."
105-
curl -XDELETE ${SSL_SKIP_VERIFY} ${ELASTICSEARCH_SCHEMA}://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/*
106-
fi
107-
108102
if ! curl -s ${SSL_SKIP_VERIFY} ${ELASTICSEARCH_SCHEMA}://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}/_cat/indices | grep -q zammad; then
109103
echo "rebuilding es searchindex..."
110104
bundle exec rake searchindex:rebuild

0 commit comments

Comments
 (0)