diff options
| author | Douglas F Shearer | 2012-12-17 23:04:06 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2012-12-22 21:22:26 +0000 |
| commit | c5592f7235020d8c02ca3748534fa3ed333a247a (patch) | |
| tree | 468585cf61a1403e93de45df3037698d2ed8f8ee /Library/Formula | |
| parent | 99838f0e841ba9943b082fdcfc93b352ce723a29 (diff) | |
| download | homebrew-c5592f7235020d8c02ca3748534fa3ed333a247a.tar.bz2 | |
elasticsearch: persist plugins by changing config.
Closes #16629.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/elasticsearch.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Formula/elasticsearch.rb b/Library/Formula/elasticsearch.rb index f36b14d5f..4963c567b 100644 --- a/Library/Formula/elasticsearch.rb +++ b/Library/Formula/elasticsearch.rb @@ -31,6 +31,10 @@ class Elasticsearch < Formula # 3. Bind to loopback IP for laptops roaming different networks s.gsub! /#\s*network\.host\: [^\n]+/, "network.host: 127.0.0.1" + + # 4. Persist plugins on upgrade + s.gsub! "# path.plugins: /path/to/plugins", "path.plugins: #{var}/lib/elasticsearch/plugins" + end inreplace "#{bin}/elasticsearch.in.sh" do |s| @@ -49,11 +53,6 @@ class Elasticsearch < Formula # Replace CLASSPATH paths to use libexec instead of lib s.gsub! /-cp \".*\"/, '-cp "$ES_HOME/libexec/*"' end - - # Persist plugins on upgrade - plugins = "#{HOMEBREW_PREFIX}/var/lib/elasticsearch/plugins" - mkdir_p plugins - ln_sf plugins, "#{prefix}/plugins" end def caveats; <<-EOS.undent |
