Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
Consistent handling of Kibana config
Browse files Browse the repository at this point in the history
This commit modifies the handling of installing the Kibana config so
that it is consistent with the handling in other formulae.
  • Loading branch information
jasontedor committed Dec 28, 2015
1 parent 49c146c commit 854bd6e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Library/Formula/kibana.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,15 @@ def install
end

inreplace "#{bin}/kibana", %r{/node/bin/node}, "/libexec/node/bin/node"

cd prefix do
inreplace "config/kibana.yml", %{/var/run/kibana.pid}, var/"run/kibana.pid"
(etc/"kibana").install Dir["config/*"]
rm_rf "config"
end
end

def post_install
inreplace "#{prefix}/config/kibana.yml", %{/var/run/kibana.pid}, var/"run/kibana.pid"
(etc/"kibana").install prefix/"config/kibana.yml" unless (etc/"kibana/kibana.yml").exist?
rm_rf prefix/"config"
ln_s etc/"kibana", prefix/"config"

(var/"lib/kibana/installedPlugins").mkpath
Expand Down

0 comments on commit 854bd6e

Please sign in to comment.