diff options
author | Ernie Hershey <ernie.hershey@10gen.com> | 2014-03-04 18:00:11 +0000 |
---|---|---|
committer | Ernie Hershey <ernie.hershey@10gen.com> | 2014-03-04 16:23:13 -0500 |
commit | 8298b133ed0bf6bebdac9141f5218785ccd14a66 (patch) | |
tree | 770433e348f740b84391784696476597d4402fa7 /rpm/mongodb-enterprise-unstable.spec | |
parent | 808c522cc32b9e4e8005fcd526dc3fe9bd6cf4d6 (diff) | |
download | mongo-8298b133ed0bf6bebdac9141f5218785ccd14a66.tar.gz |
SERVER-13016 Change rpm username from mongodb to mongod
Diffstat (limited to 'rpm/mongodb-enterprise-unstable.spec')
-rw-r--r-- | rpm/mongodb-enterprise-unstable.spec | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/rpm/mongodb-enterprise-unstable.spec b/rpm/mongodb-enterprise-unstable.spec index a1d14452580..198eb57f7a6 100644 --- a/rpm/mongodb-enterprise-unstable.spec +++ b/rpm/mongodb-enterprise-unstable.spec @@ -102,11 +102,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 @@ -136,10 +136,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 %doc snmp/MONGOD-MIB.txt %doc snmp/MONGODBINC-MIB.txt %doc snmp/mongod.conf.master |