Skip to content

Commit

Permalink
mongodb: change startup script config finder
Browse files Browse the repository at this point in the history
Closes Homebrew#15814.

Signed-off-by: Adam Vandenberg <[email protected]>
  • Loading branch information
Winslett authored and adamv committed Nov 6, 2012
1 parent 2c64e0d commit 475e63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Formula/mongodb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def install
mv bin/'mongod', prefix
(bin/'mongod').write <<-EOS.undent
#!/usr/bin/env ruby
ARGV << '--config' << '#{etc}/mongod.conf' unless ARGV.include? '--config'
ARGV << '--config' << '#{etc}/mongod.conf' unless ARGV.find { |arg| arg =~ /\-\-config/ }
exec "#{prefix}/mongod", *ARGV
EOS

Expand Down

0 comments on commit 475e63d

Please sign in to comment.