$OpenBSD: patch-bin_elasticsearch,v 1.1 2016/12/17 12:11:24 jasper Exp $
--- bin/elasticsearch.orig	Wed Oct 26 07:35:54 2016
+++ bin/elasticsearch	Wed Nov  2 13:45:10 2016
@@ -90,6 +90,7 @@ parse_jvm_options() {
 }
 
 CDPATH=""
+JAVA_HOME="$(/usr/local/bin/javaPathHelper -h elasticsearch)"
 SCRIPT="$0"
 
 # SCRIPT may be an arbitrarily deep series of symlinks. Loop until we have the concrete path.
