Check if xpack is enabled

This commit is contained in:
Manuel Gutierrez
2020-06-23 14:20:04 +02:00
parent 2921d67de1
commit 77b163bf10

View File

@@ -38,7 +38,7 @@ if [ $ENABLE_CONFIGURE_S3 ]; then
fi fi
if [ ${ENABLED_XPACK} = "true" ]; then
curl -XPUT "$el_url/_cluster/settings" ${auth} -H 'Content-Type: application/json' -d' curl -XPUT "$el_url/_cluster/settings" ${auth} -H 'Content-Type: application/json' -d'
{ {
"persistent": { "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 # Set cluster delayed timeout when node falls
curl -X PUT "$el_url/_all/_settings" -H 'Content-Type: application/json' -d' curl -X PUT "$el_url/_all/_settings" -H 'Content-Type: application/json' -d'