elasticsearch: make postinstall rerunnable
This commit is contained in:
parent
776efae04d
commit
de68c83e4b
1 changed files with 2 additions and 2 deletions
|
@ -64,9 +64,9 @@ class Elasticsearch < Formula
|
|||
# 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
|
||||
|
|
Loading…
Reference in a new issue