elasticsearch: remove cluster name from data path.

Elasticsearch no longer supports having the cluster name as part of path.data and fails at startup if the cluster name is in that path.

Closes #39435.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
This commit is contained in:
Aaron Walker 2019-04-30 13:07:25 -05:00 committed by Chongyu Zhu
parent a231ae06bc
commit b2a56b7e43
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -61,7 +61,7 @@ class Elasticsearch < Formula
def post_install
# Make sure runtime directories exist
(var/"lib/elasticsearch/#{cluster_name}").mkpath
(var/"lib/elasticsearch").mkpath
(var/"log/elasticsearch").mkpath
ln_s etc/"elasticsearch", libexec/"config" unless (libexec/"config").exist?
(var/"elasticsearch/plugins").mkpath
@ -72,7 +72,7 @@ class Elasticsearch < Formula
def caveats
s = <<~EOS
Data: #{var}/lib/elasticsearch/#{cluster_name}/
Data: #{var}/lib/elasticsearch/
Logs: #{var}/log/elasticsearch/#{cluster_name}.log
Plugins: #{var}/elasticsearch/plugins/
Config: #{etc}/elasticsearch/