As recommanded by Shay : Don't modify ES_PARAMS Escape parameters

This commit is contained in:
David Pilato 2011-11-16 20:00:48 +01:00 committed by Shay Banon
parent 1bc7d8230b
commit 20b92482b5
1 changed files with 2 additions and 2 deletions

View File

@ -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