summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-06-15 02:21:27 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-06-15 02:21:27 +0000
commit0191e4535f7a7d79215f725a5d0639944445b52b (patch)
tree1ff559e19fea8aac7a1412d5fad9901982c6c028
parentb3b76bc3cab9d813a860fcead58ae27e4df09312 (diff)
downloadmongodb-0191e4535f7a7d79215f725a5d0639944445b52b.tar.gz
SMF requires home dir to existHEADmaster
-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