diff options
author | Ernie Hershey <ernie.hershey@10gen.com> | 2013-09-30 13:33:08 -0400 |
---|---|---|
committer | Ernie Hershey <ernie.hershey@10gen.com> | 2013-10-04 13:25:27 -0400 |
commit | ef582b64cb3013bed2165f3bc35f180e52710b66 (patch) | |
tree | d84dc17fc94d8bf5a6889fd117e3e0f0eb573479 /buildscripts/packager-enterprise.py | |
parent | 09ffdcc9274e20b879710cdb5d1271a65e6c6470 (diff) | |
download | mongo-ef582b64cb3013bed2165f3bc35f180e52710b66.tar.gz |
SERVER-3579 Change redhat username and group from mongod to mongodb
Diffstat (limited to 'buildscripts/packager-enterprise.py')
-rwxr-xr-x | buildscripts/packager-enterprise.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/buildscripts/packager-enterprise.py b/buildscripts/packager-enterprise.py index 643c9527c66..de28966d348 100755 --- a/buildscripts/packager-enterprise.py +++ b/buildscripts/packager-enterprise.py @@ -856,12 +856,12 @@ 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 +if ! /usr/bin/id -g mongodb &>/dev/null; then /usr/sbin/groupadd -r mongod 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 @@ -926,9 +926,9 @@ fi /etc/rc.d/init.d/mongod /etc/sysconfig/mongod #/etc/rc.d/init.d/mongos -%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 %changelog * Thu Jan 28 2010 Richard M Kreuter <richard@10gen.com> |