From 77b163bf10f08a6d029ae7ff3e0cfcfa4564526a Mon Sep 17 00:00:00 2001 From: Manuel Gutierrez <1380243+xr09@users.noreply.github.com> Date: Tue, 23 Jun 2020 14:20:04 +0200 Subject: [PATCH] Check if xpack is enabled --- elasticsearch/config/load_settings.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/elasticsearch/config/load_settings.sh b/elasticsearch/config/load_settings.sh index 014a54b1..5aeedb9c 100644 --- a/elasticsearch/config/load_settings.sh +++ b/elasticsearch/config/load_settings.sh @@ -38,7 +38,7 @@ if [ $ENABLE_CONFIGURE_S3 ]; then fi - +if [ ${ENABLED_XPACK} = "true" ]; then curl -XPUT "$el_url/_cluster/settings" ${auth} -H 'Content-Type: application/json' -d' { "persistent": { @@ -46,6 +46,7 @@ curl -XPUT "$el_url/_cluster/settings" ${auth} -H 'Content-Type: application/jso } } ' +fi # Set cluster delayed timeout when node falls curl -X PUT "$el_url/_all/_settings" -H 'Content-Type: application/json' -d'