mongodb: change startup script config finder

Closes Homebrew/homebrew#15814.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Chris Winslett 2012-11-02 09:57:13 -05:00 committed by Adam Vandenberg
parent 4452ebd149
commit ffe5dd437d
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class Mongodb < Formula
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