elasticsearch: audit nit

This commit is contained in:
Baptiste Fontaine 2015-12-09 11:32:05 +01:00
parent f03b67cc00
commit 3fa7db032f

View file

@ -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/*"]