Browse Source

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"
Scott MacVicar 13 năm trước cách đây
mục cha
commit
cf7ebfcebf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      bin/plugin

+ 1 - 1
bin/plugin

@@ -28,4 +28,4 @@ else
     JAVA=`which java`
     JAVA=`which java`
 fi
 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 $*