Add $JAVA_OPTS to the plugin manager, useful for those who have proxies

Summary:
Facebook machines have on direct access to the internet. Need to tell java that we should use proxies.

Test Plan:
export JAVA_OPTS="-Dhttp.proxyHost=<ip> -Dhttp.proxyPort=8080"
This commit is contained in:
Scott MacVicar 2012-10-22 17:57:20 -07:00 committed by Shay Banon
parent 29928a9e15
commit cf7ebfcebf
1 changed files with 1 additions and 1 deletions

View File

@ -28,4 +28,4 @@ else
JAVA=`which java`
fi
exec $JAVA -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" -cp "$ES_HOME/lib/*" org.elasticsearch.plugins.PluginManager $*
exec $JAVA $JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" -cp "$ES_HOME/lib/*" org.elasticsearch.plugins.PluginManager $*