Fix configuration files and install the admin site.

pull/17/head
Todd Persen 2013-10-22 11:54:26 -04:00
parent cfcaa53534
commit 9e191cee68
1 changed files with 10 additions and 0 deletions

View File

@ -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"