mongodb: create var directories in post_install.
This commit is contained in:
parent
030793c988
commit
fdce18e719
1 changed files with 2 additions and 3 deletions
|
@ -33,9 +33,6 @@ class Mongodb < Formula
|
||||||
|
|
||||||
system 'scons', 'install', *args
|
system 'scons', 'install', *args
|
||||||
|
|
||||||
(var+'mongodb').mkpath
|
|
||||||
(var+'log/mongodb').mkpath
|
|
||||||
|
|
||||||
(prefix+'mongod.conf').write mongodb_conf
|
(prefix+'mongod.conf').write mongodb_conf
|
||||||
|
|
||||||
mv bin/'mongod', prefix
|
mv bin/'mongod', prefix
|
||||||
|
@ -49,6 +46,8 @@ class Mongodb < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
def post_install
|
def post_install
|
||||||
|
(var+'mongodb').mkpath
|
||||||
|
(var+'log/mongodb').mkpath
|
||||||
cp prefix+'mongod.conf', etc unless File.exists? etc+"mongod.conf"
|
cp prefix+'mongod.conf', etc unless File.exists? etc+"mongod.conf"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue