mongodb: move some post_install back to install.

master
Mike McQuaid 2013-10-07 15:35:37 +01:00
parent 9a177d6c9e
commit f1394a2c79
1 changed files with 6 additions and 2 deletions

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