Use ES_JAVA_HOME instead of JAVA_HOME (#789)

This commit set `ES_JAVA_HOME` environment variable instead of
`JAVA_HOME` when `es_java_home` environment variable is used.

See https://github.com/elastic/elasticsearch/issues/68848 for more
context.
This commit is contained in:
Julien Mailleret 2021-03-18 15:32:30 +01:00 committed by GitHub
parent 3904913be5
commit ba1e82849b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,9 +10,9 @@ ES_TMPDIR={{ es_tmp_dir }}
# Elasticsearch Java path
{% if es_java_home | length > 0 %}
JAVA_HOME={{ es_java_home }}
ES_JAVA_HOME={{ es_java_home }}
{% else %}
#JAVA_HOME=
#ES_JAVA_HOME=
{% endif %}
# Elasticsearch configuration directory