[openstack-keystone] use reserved user id for keystone

Alan Pevec apevec at fedoraproject.org
Thu May 24 14:45:11 UTC 2012


commit beb063515efae5183c888cdf138b2c29e1d265cd
Author: Alan Pevec <apevec at redhat.com>
Date:   Thu May 24 15:01:30 2012 +0200

    use reserved user id for keystone
    
    reserved in setup RPM rhbz#752842

 openstack-keystone.spec |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/openstack-keystone.spec b/openstack-keystone.spec
index ccf3500..c148006 100644
--- a/openstack-keystone.spec
+++ b/openstack-keystone.spec
@@ -147,9 +147,10 @@ popd
 rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo
 
 %pre
-getent group keystone >/dev/null || groupadd -r keystone
+# 163:163 for keystone (openstack-keystone) - rhbz#752842
+getent group keystone >/dev/null || groupadd -r --gid 163 keystone
 getent passwd keystone >/dev/null || \
-useradd -r -g keystone -d %{_sharedstatedir}/keystone -s /sbin/nologin \
+useradd --uid 163 -r -g keystone -d %{_sharedstatedir}/keystone -s /sbin/nologin \
 -c "OpenStack Keystone Daemons" keystone
 exit 0
 
@@ -207,6 +208,7 @@ fi
 %changelog
 * Thu May 24 2012 Alan Pevec <apevec at redhat.com> 2012.1-3
 - python-keystone-auth-token subpackage (rhbz#824034)
+- use reserved user id for keystone (rhbz#752842)
 
 * Mon May 21 2012 Alan Pevec <apevec at redhat.com> 2012.1-2
 - Sync up with Essex stable branch


More information about the scm-commits mailing list