summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog6
-rw-r--r--debian/mongodb-server.postinst2
2 files changed, 7 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index e8d7ae2..037e69a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+mongodb (1:2.0.6-1+dyson2) unstable; urgency=low
+
+ * Set /var/lib/mongodb as home dir for mongodb user
+
+ -- Igor Pashev <pashev.igor@gmail.com> Fri, 15 Jun 2012 02:20:00 +0000
+
mongodb (1:2.0.6-1+dyson1) unstable; urgency=low
* Built for Dyson
diff --git a/debian/mongodb-server.postinst b/debian/mongodb-server.postinst
index 5dac006..5836d7e 100644
--- a/debian/mongodb-server.postinst
+++ b/debian/mongodb-server.postinst
@@ -22,7 +22,7 @@ case "$1" in
configure)
# create a mongodb group and user
if ! grep -q mongodb /etc/passwd; then
- adduser --system --no-create-home mongodb
+ adduser --system --no-create-home --home /var/lib/mongodb mongodb
addgroup --system mongodb
adduser mongodb mongodb
fi