From 9e191cee68571c85a5e1d211c8b5e42e5ca579c0 Mon Sep 17 00:00:00 2001 From: Todd Persen Date: Tue, 22 Oct 2013 11:54:26 -0400 Subject: [PATCH] Fix configuration files and install the admin site. --- homebrew/influxdb.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/homebrew/influxdb.rb b/homebrew/influxdb.rb index 69ee554b3c..21b654fc54 100644 --- a/homebrew/influxdb.rb +++ b/homebrew/influxdb.rb @@ -7,8 +7,18 @@ class Influxdb < Formula depends_on "leveldb" def install + inreplace "config.json" do |s| + s.gsub! "/tmp/influxdb/development/db", "#{var}/influxdb/data" + s.gsub! "/tmp/influxdb/development/raft", "#{var}/influxdb/raft" + s.gsub! "./src/admin/site/", "#{share}/admin/" + end + bin.install "influxdb" etc.install "config.json" => "influxdb.conf" + share.install "admin" + + %w[influxdb infludxb/data influxdb/raft].each { |p| (var+p).mkpath } + end plist_options :manual => "influxdb -config=#{HOMEBREW_PREFIX}/etc/influxdb.conf"