mongodb: move some post_install back to install.

This commit is contained in:
Mike McQuaid 2013-10-07 15:35:37 +01:00
parent 9a177d6c9e
commit f1394a2c79

View file

@ -48,13 +48,17 @@ class Mongodb < Formula
}
exec "#{prefix}/mongod", *ARGV
EOS
etc.install prefix+'mongod.conf'
(var+'mongodb').mkpath
(var+'log/mongodb').mkpath
end
def post_install
# TODO: can be removed when bottle is updated.
(var+'mongodb').mkpath
(var+'log/mongodb').mkpath
etc.mkpath
cp prefix+'mongod.conf', etc+"mongod.conf" unless File.exists? etc+"mongod.conf"
end
def mongodb_conf; <<-EOS.undent