mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-29 16:47:28 +01:00
Change some paths mongodb.conf for debianoids. MINOR
This commit is contained in:
parent
a5078c00d5
commit
b284b8b6e6
4
debian/mongodb.conf
vendored
4
debian/mongodb.conf
vendored
@ -5,10 +5,10 @@
|
||||
# Note: if you run mongodb as a non-root user (recommended) you may
|
||||
# need to create and set permissions for this directory manually,
|
||||
# e.g., if the parent directory isn't mutable by the mongodb user.
|
||||
dbpath=/var/lib/mongo
|
||||
dbpath=/var/lib/mongodb
|
||||
|
||||
#where to log
|
||||
logpath=/var/log/mongod
|
||||
logpath=/var/log/mongodb/mongodb.log
|
||||
|
||||
logappend=true
|
||||
|
||||
|
4
debian/postinst
vendored
4
debian/postinst
vendored
@ -27,11 +27,11 @@ case "$1" in
|
||||
adduser mongodb mongodb
|
||||
fi
|
||||
|
||||
# create db
|
||||
# create db -- note: this should agree with dbpath in mongodb.conf
|
||||
mkdir -p /var/lib/mongodb
|
||||
chown mongodb:mongodb /var/lib/mongodb
|
||||
|
||||
# create logdir
|
||||
# create logdir -- note: this should agree with logpath in mongodb.conf
|
||||
mkdir -p /var/log/mongodb
|
||||
chown mongodb:mongodb /var/log/mongodb
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user