summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorErnie Hershey <ernie.hershey@10gen.com>2013-09-30 13:33:08 -0400
committerErnie Hershey <ernie.hershey@10gen.com>2013-10-04 13:25:27 -0400
commitef582b64cb3013bed2165f3bc35f180e52710b66 (patch)
treed84dc17fc94d8bf5a6889fd117e3e0f0eb573479 /rpm
parent09ffdcc9274e20b879710cdb5d1271a65e6c6470 (diff)
downloadmongo-ef582b64cb3013bed2165f3bc35f180e52710b66.tar.gz
SERVER-3579 Change redhat username and group from mongod to mongodb
Diffstat (limited to 'rpm')
-rw-r--r--rpm/init.d-mongod4
-rw-r--r--rpm/mongodb-org-unstable.spec14
2 files changed, 9 insertions, 9 deletions
diff --git a/rpm/init.d-mongod b/rpm/init.d-mongod
index 4c8cd49ef04..fe3d03ea84c 100644
--- a/rpm/init.d-mongod
+++ b/rpm/init.d-mongod
@@ -26,8 +26,8 @@ DBPATH=`awk -F= '/^dbpath[[:blank:]]*=[[:blank:]]*/{print $2}' "$CONFIGFILE"`
PIDFILE=`awk -F= '/^pidfilepath[[:blank:]]*=[[:blank:]]*/{print $2}' "$CONFIGFILE"`
mongod=${MONGOD-/usr/bin/mongod}
-MONGO_USER=mongod
-MONGO_GROUP=mongod
+MONGO_USER=mongodb
+MONGO_GROUP=mongodb
if [ -f "$SYSCONFIG" ]; then
. "$SYSCONFIG"
diff --git a/rpm/mongodb-org-unstable.spec b/rpm/mongodb-org-unstable.spec
index 03e1b8238f5..c9f1610c15d 100644
--- a/rpm/mongodb-org-unstable.spec
+++ b/rpm/mongodb-org-unstable.spec
@@ -90,11 +90,11 @@ touch $RPM_BUILD_ROOT/var/log/mongodb/mongod.log
rm -rf $RPM_BUILD_ROOT
%pre server
-if ! /usr/bin/id -g mongod &>/dev/null; then
- /usr/sbin/groupadd -r mongod
+if ! /usr/bin/id -g mongodb &>/dev/null; then
+ /usr/sbin/groupadd -r mongodb
fi
-if ! /usr/bin/id mongod &>/dev/null; then
- /usr/sbin/useradd -M -r -g mongod -d /var/lib/mongodb -s /bin/false -c mongod mongod > /dev/null 2>&1
+if ! /usr/bin/id mongodb &>/dev/null; then
+ /usr/sbin/useradd -M -r -g mongodb -d /var/lib/mongodb -s /bin/false -c mongodb mongodb > /dev/null 2>&1
fi
%post server
@@ -124,9 +124,9 @@ fi
%{_mandir}/man1/mongod.1*
/etc/rc.d/init.d/mongod
/etc/sysconfig/mongod
-%attr(0755,mongod,mongod) %dir /var/lib/mongodb
-%attr(0755,mongod,mongod) %dir /var/log/mongodb
-%attr(0640,mongod,mongod) %config(noreplace) %verify(not md5 size mtime) /var/log/mongodb/mongod.log
+%attr(0755,mongodb,mongodb) %dir /var/lib/mongodb
+%attr(0755,mongodb,mongodb) %dir /var/log/mongodb
+%attr(0640,mongodb,mongodb) %config(noreplace) %verify(not md5 size mtime) /var/log/mongodb/mongod.log
%files shell
%defattr(-,root,root,-)