diff options
| author | Sudish Joseph | 2011-06-19 19:24:00 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2012-01-22 14:35:24 -0800 |
| commit | 383a0709573e60f92cdc369502ef5850d55417ce (patch) | |
| tree | 1d3ced02015e69b3a37e4c3091b6983c1b08830a /Library/Formula/mongodb.rb | |
| parent | 6b6bc9afffad8d51dbfbcee054a962dd7a816fb1 (diff) | |
| download | homebrew-383a0709573e60f92cdc369502ef5850d55417ce.tar.bz2 | |
mongodb: put mongod.conf in etc intsead of Cellar
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/mongodb.rb')
| -rw-r--r-- | Library/Formula/mongodb.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb index ac49b3cd3..ee5e7f0c6 100644 --- a/Library/Formula/mongodb.rb +++ b/Library/Formula/mongodb.rb @@ -62,15 +62,19 @@ class Mongodb < Formula Or start it manually: mongod run --config #{prefix}/mongod.conf + + The launchctl plist above expects the config file to be at #{etc}/mongod.conf. + If this is a first install, you can copy one from #{prefix}/mongod.conf: + cp #{prefix}/mongod.conf #{etc}/mongod.conf EOS if ARGV.include? "--nojournal" - s += "" + s += "\n" s += <<-EOS.undent Write Ahead logging (Journaling) has been disabled. EOS else - s += "" + s += "\n" s += <<-EOS.undent MongoDB 1.8+ includes a feature for Write Ahead Logging (Journaling), which has been enabled by default. To disable journaling, use --nojournal. @@ -120,7 +124,7 @@ class Mongodb < Formula <string>#{bin}/mongod</string> <string>run</string> <string>--config</string> - <string>#{prefix}/mongod.conf</string> + <string>#{etc}/mongod.conf</string> </array> <key>RunAtLoad</key> <true/> |
