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:
parent
a231ae06bc
commit
b2a56b7e43
1 changed files with 2 additions and 2 deletions
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue