mongodb: move some post_install back to install.
This commit is contained in:
parent
9a177d6c9e
commit
f1394a2c79
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue