mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 09:28:27 +00:00
Startup: Reset locale to en_US.UTF-8 in bin/elasticsearch
Because the NetworkExceptionHelper class relies on the english language in order to extract information and decide whether a certain exception is a network problem, we need to set the english locale on startup in order to prevent other locales to circumvent this check.
This commit is contained in:
parent
1dc186a595
commit
5fdb35fc54
@ -135,6 +135,11 @@ launch_service()
|
||||
es_parms="$es_parms -Des.pidfile=$pidpath"
|
||||
fi
|
||||
|
||||
# Make sure we dont use any predefined locale, as we check some exception message strings and rely on english language
|
||||
# As those strings are created by the OS, they are dependant on the configured locale
|
||||
LANG=en_US.UTF-8
|
||||
LC_ALL=en_US.UTF-8
|
||||
|
||||
# The es-foreground option will tell Elasticsearch not to close stdout/stderr, but it's up to us not to daemonize.
|
||||
if [ "x$daemonized" = "x" ]; then
|
||||
es_parms="$es_parms -Des.foreground=yes"
|
||||
|
Loading…
x
Reference in New Issue
Block a user