Plugin Manager: Properly quote $JAVA in bin/plugin

The all new Oracle Java 7 on OSX has a space in its path
resulting in bin/plugin failing to work

Closes #5765
This commit is contained in:
Mahesh Paolini-Subramanya 2014-04-10 16:37:47 +02:00 committed by Alexander Reelsen
parent 6a7a77eada
commit 4eca0499fa
1 changed files with 1 additions and 1 deletions

View File

@ -45,5 +45,5 @@ while [ $# -gt 0 ]; do
shift
done
exec $JAVA $JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" $properties -cp "$ES_HOME/lib/*" org.elasticsearch.plugins.PluginManager $args
exec "$JAVA" $JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" $properties -cp "$ES_HOME/lib/*" org.elasticsearch.plugins.PluginManager $args