[Pkg-mongodb-maintainers] [pkg-mongodb] 317/394: Specify home directory when adding mongodb user
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Wed Sep 21 13:59:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch master
in repository pkg-mongodb.
commit 81b438b32b0d0e3a36ef902059cfd185be53873c
Author: Laszlo Boszormenyi (GCS) <gcs at debian.org>
Date: Tue Jun 30 16:50:45 2015 +0000
Specify home directory when adding mongodb user
---
debian/changelog | 1 +
debian/mongodb-server.postinst | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index d237151..32428fd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ mongodb (1:2.4.14-1) unstable; urgency=low
* New upstream release.
* Remove applied patches.
+ * Specify home directory when adding mongodb user.
-- Laszlo Boszormenyi (GCS) <gcs at debian.org> Sun, 31 May 2015 12:46:04 +0000
diff --git a/debian/mongodb-server.postinst b/debian/mongodb-server.postinst
index 5dac006..86761b6 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 --home /var/lib/mongodb --no-create-home mongodb
addgroup --system mongodb
adduser mongodb mongodb
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mongodb/pkg-mongodb.git
More information about the Pkg-mongodb-maintainers
mailing list