From b284b8b6e67831a5012e085fa33e6c2ea50545c7 Mon Sep 17 00:00:00 2001 From: Richard Kreuter Date: Mon, 8 Feb 2010 12:35:29 -0500 Subject: [PATCH] Change some paths mongodb.conf for debianoids. MINOR --- debian/mongodb.conf | 4 ++-- debian/postinst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/mongodb.conf b/debian/mongodb.conf index f9a81013e36..6a5de055d3d 100644 --- a/debian/mongodb.conf +++ b/debian/mongodb.conf @@ -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 diff --git a/debian/postinst b/debian/postinst index 0130d403b9d..0bcc2e289e7 100644 --- a/debian/postinst +++ b/debian/postinst @@ -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 ;;