diff options
| author | Mike McQuaid | 2013-09-05 11:59:31 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-05 11:59:31 +0100 |
| commit | 5ba030c162a8ad000623e04867fdd696923dabf7 (patch) | |
| tree | 0380bfbf3d3788be3c1f559f5c1cbb8ce2520d64 /Library/Formula | |
| parent | 83971ef285dbfb4507e75948c70d33c6aa6731ad (diff) | |
| download | homebrew-5ba030c162a8ad000623e04867fdd696923dabf7.tar.bz2 | |
mongodb: fix config file installation.
References #22149.
Closes #22329.
Closes #22331.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mongodb.rb | 11 |
1 files changed, 7 insertions, 4 deletions
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 |
