As recommanded by Shay : Don't modify ES_PARAMS Escape parameters
This commit is contained in:
parent
1bc7d8230b
commit
20b92482b5
|
@ -48,9 +48,9 @@ REM space for a full heap dump.
|
|||
REM JAVA_OPTS=%JAVA_OPTS% -XX:HeapDumpPath=$ES_HOME/logs/heapdump.hprof
|
||||
|
||||
set ES_CLASSPATH=%ES_CLASSPATH%;%ES_HOME%/lib/*;%ES_HOME%/lib/sigar/*
|
||||
set ES_PARAMS=-Delasticsearch -Des-foreground=yes -Des.path.home="%ES_HOME%" %*
|
||||
set ES_PARAMS=-Delasticsearch -Des-foreground=yes -Des.path.home="%ES_HOME%"
|
||||
|
||||
"%JAVA_HOME%\bin\java" %JAVA_OPTS% %ES_JAVA_OPTS% %ES_PARAMS% -cp "%ES_CLASSPATH%" "org.elasticsearch.bootstrap.ElasticSearch"
|
||||
"%JAVA_HOME%\bin\java" %JAVA_OPTS% %ES_JAVA_OPTS% %ES_PARAMS% "%*" -cp "%ES_CLASSPATH%" "org.elasticsearch.bootstrap.ElasticSearch"
|
||||
goto finally
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue