diff --git a/Formula/elasticsearch.rb b/Formula/elasticsearch.rb index 30ba95fd3e..d2bef7a054 100644 --- a/Formula/elasticsearch.rb +++ b/Formula/elasticsearch.rb @@ -5,14 +5,14 @@ class Elasticsearch < Formula sha256 "8a4e85bcb506daa369651506af1cbc55c09fd7ff387d111142ae14d0a85d4d14" revision 1 - bottle :unneeded - head do url "https://github.com/elasticsearch/elasticsearch.git" depends_on :java => "1.8" depends_on "gradle" => :build end + bottle :unneeded + depends_on :java => "1.7+" def cluster_name @@ -59,7 +59,7 @@ class Elasticsearch < Formula # Move config files into etc (etc/"elasticsearch").install Dir[libexec/"config/*"] - (etc/"elasticsearch/scripts").mkdir unless File.exists?(etc/"elasticsearch/scripts") + (etc/"elasticsearch/scripts").mkdir unless File.exist?(etc/"elasticsearch/scripts") (libexec/"config").rmtree bin.write_exec_script Dir[libexec/"bin/*"]