elasticsearch@2.4: make postinstall rerunnable

This commit is contained in:
Misty De Meo 2019-02-20 12:30:34 -08:00 committed by Misty De Meo
parent de68c83e4b
commit 68324b22f4

View file

@ -59,8 +59,8 @@ class ElasticsearchAT24 < Formula
# Make sure runtime directories exist
(var/"elasticsearch/#{cluster_name}").mkpath
(var/"log/elasticsearch").mkpath
ln_s etc/"elasticsearch", libexec/"config"
(libexec/"plugins").mkdir
ln_s etc/"elasticsearch", libexec/"config" unless (libexec/"config").exist?
(libexec/"plugins").mkpath
end
def caveats; <<~EOS