Skip to content

Commit ea738a8

Browse files
committed
Disable version 8 default security
1 parent 0ab9d15 commit ea738a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/elasticsearch.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ tar -xaf "${CACHED_DOWNLOAD}" --strip-components=1 --directory "${ELASTICSEARCH_
4949

5050
echo "http.port: ${ELASTICSEARCH_PORT}" >> ${ELASTICSEARCH_DIR}/config/elasticsearch.yml
5151

52+
# Disable version 8 default security
53+
if [ ${ELASTICSEARCH_VERSION:0:1} -ge 8 ]; then
54+
echo "xpack.security.enabled: false" >> ${ELASTICSEARCH_DIR}/config/elasticsearch.yml
55+
fi
56+
5257
if [ "$ELASTICSEARCH_PLUGINS" ]
5358
then
5459
for i in $ELASTICSEARCH_PLUGINS ; do

0 commit comments

Comments
 (0)