From 5ba030c162a8ad000623e04867fdd696923dabf7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 5 Sep 2013 11:59:31 +0100 Subject: mongodb: fix config file installation. References #22149. Closes #22329. Closes #22331. --- Library/Formula/mongodb.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb index 706ee156a..8fd362a63 100644 --- a/Library/Formula/mongodb.rb +++ b/Library/Formula/mongodb.rb @@ -13,9 +13,10 @@ class Mongodb < Formula head 'https://github.com/mongodb/mongo.git' bottle do - sha1 'ddac997b68deff5bfa04d22f5ddef44f895e6629' => :mountain_lion - sha1 '85ed3769ab3bc301dd044c94522fea24fb91d16f' => :lion - sha1 '2e5a28f2a9c97058b5e3b002403ed2fb3439cd8c' => :snow_leopard + revision 1 + sha1 '323566c3738d80a437bae63f294c44e7548ae758' => :mountain_lion + sha1 'fbe4d599ae992c6b863c96da6da3b45446bdc0cf' => :lion + sha1 'b4d7e33054b9daef2504bcdb8f26ef43dbea6aaf' => :snow_leopard end depends_on 'scons' => :build @@ -45,8 +46,10 @@ class Mongodb < Formula } exec "#{prefix}/mongod", *ARGV EOS + end - etc.install prefix+'mongod.conf' unless File.exists? etc+"mongod.conf" + def post_install + cp prefix+'mongod.conf', etc unless File.exists? etc+"mongod.conf" end def mongodb_conf; <<-EOS.undent -- cgit v1.2.3