Skip to content

Commit

Permalink
Change some paths mongodb.conf for debianoids. MINOR
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kreuter committed Feb 8, 2010
1 parent a5078c0 commit b284b8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions debian/mongodb.conf
Expand Up @@ -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

This comment has been minimized.

Copy link
@sashka

sashka Aug 13, 2011

This line does not affect mongodb parameters in Debian.
Admin should create /etc/default/mongo or hotfix start/stop script.


#where to log
logpath=/var/log/mongod
logpath=/var/log/mongodb/mongodb.log

This comment has been minimized.

Copy link
@sashka

sashka Aug 13, 2011

The same as dbpath — does not affect mongodb parameters in Debian.
Admin should create /etc/default/mongo or hotfix start/stop script.


logappend=true

Expand Down
4 changes: 2 additions & 2 deletions debian/postinst
Expand Up @@ -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
;;
Expand Down

0 comments on commit b284b8b

Please sign in to comment.