Skip to content

Commit

Permalink
elasticsearch: make postinstall rerunnable
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Feb 23, 2019
1 parent 776efae commit de68c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/elasticsearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def post_install
# Make sure runtime directories exist
(var/"lib/elasticsearch/#{cluster_name}").mkpath
(var/"log/elasticsearch").mkpath
ln_s etc/"elasticsearch", libexec/"config"
ln_s etc/"elasticsearch", libexec/"config" unless (libexec/"config").exist?
(var/"elasticsearch/plugins").mkpath
ln_s var/"elasticsearch/plugins", libexec/"plugins"
ln_s var/"elasticsearch/plugins", libexec/"plugins" unless (libexec/"plugins").exist?
# fix test not being able to create keystore because of sandbox permissions
system bin/"elasticsearch-keystore", "create" unless (etc/"elasticsearch/elasticsearch.keystore").exist?
end
Expand Down

0 comments on commit de68c83

Please sign in to comment.