summaryrefslogtreecommitdiff
path: root/rpm/mongodb-org.spec
diff options
context:
space:
mode:
authorErnie Hershey <ernie.hershey@10gen.com>2014-03-04 18:00:11 +0000
committerErnie Hershey <ernie.hershey@10gen.com>2014-03-04 16:23:13 -0500
commit8298b133ed0bf6bebdac9141f5218785ccd14a66 (patch)
tree770433e348f740b84391784696476597d4402fa7 /rpm/mongodb-org.spec
parent808c522cc32b9e4e8005fcd526dc3fe9bd6cf4d6 (diff)
downloadmongo-8298b133ed0bf6bebdac9141f5218785ccd14a66.tar.gz
SERVER-13016 Change rpm username from mongodb to mongod
Diffstat (limited to 'rpm/mongodb-org.spec')
-rw-r--r--rpm/mongodb-org.spec16
1 files changed, 8 insertions, 8 deletions
diff --git a/rpm/mongodb-org.spec b/rpm/mongodb-org.spec
index f26c3dea211..dc976cadf54 100644
--- a/rpm/mongodb-org.spec
+++ b/rpm/mongodb-org.spec
@@ -96,11 +96,11 @@ touch $RPM_BUILD_ROOT/var/log/mongodb/mongod.log
rm -rf $RPM_BUILD_ROOT
%pre server
-if ! /usr/bin/id -g mongodb &>/dev/null; then
- /usr/sbin/groupadd -r mongodb
+if ! /usr/bin/id -g mongod &>/dev/null; then
+ /usr/sbin/groupadd -r mongod
fi
-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
+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
fi
%post server
@@ -130,10 +130,10 @@ fi
%{_mandir}/man1/mongod.1*
/etc/rc.d/init.d/mongod
/etc/sysconfig/mongod
-%attr(0755,mongodb,mongodb) %dir /var/lib/mongodb
-%attr(0755,mongodb,mongodb) %dir /var/log/mongodb
-%attr(0755,mongodb,mongodb) %dir /var/run/mongodb
-%attr(0640,mongodb,mongodb) %config(noreplace) %verify(not md5 size mtime) /var/log/mongodb/mongod.log
+%attr(0755,mongod,mongod) %dir /var/lib/mongodb
+%attr(0755,mongod,mongod) %dir /var/log/mongodb
+%attr(0755,mongod,mongod) %dir /var/run/mongodb
+%attr(0640,mongod,mongod) %config(noreplace) %verify(not md5 size mtime) /var/log/mongodb/mongod.log
%files shell
%defattr(-,root,root,-)