summaryrefslogtreecommitdiffstats
path: root/ceph.spec.in
diff options
context:
space:
mode:
authorNathan Cutler <ncutler@suse.com>2016-05-12 19:23:31 +0200
committerNathan Cutler <ncutler@suse.com>2016-05-12 21:42:11 +0200
commitb3dfa8d90962e60b6841555db830c8ea635f4cce (patch)
tree1e118ac74a9fa5da9021a84e550a406792d0fdeb /ceph.spec.in
parentMerge pull request #8926 from ceph/wip-ec-test-check (diff)
downloadceph-b3dfa8d90962e60b6841555db830c8ea635f4cce.tar.xz
ceph-b3dfa8d90962e60b6841555db830c8ea635f4cce.zip
rpm: unconditionally set ceph user's primary group to ceph (SUSE)
This commit brings the user/group creation into greater semantic alignment with the Debian packaging. Fixes: http://tracker.ceph.com/issues/15869 Signed-off-by: Nathan Cutler <ncutler@suse.com>
Diffstat (limited to 'ceph.spec.in')
-rw-r--r--ceph.spec.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/ceph.spec.in b/ceph.spec.in
index 392a82e2cb1..e5f3915c9e6 100644
--- a/ceph.spec.in
+++ b/ceph.spec.in
@@ -978,8 +978,13 @@ fi
if ! getent passwd ceph >/dev/null ; then
CEPH_USER_ID_OPTION=""
getent passwd $CEPH_USER_ID >/dev/null || CEPH_USER_ID_OPTION="-u $CEPH_USER_ID"
- useradd ceph $CEPH_USER_ID_OPTION -r -g ceph -s /sbin/nologin -c "Ceph daemons" -d %{_localstatedir}/lib/ceph 2>/dev/null || :
+ useradd ceph $CEPH_USER_ID_OPTION -r -g ceph -s /sbin/nologin 2>/dev/null || :
fi
+usermod -c "Ceph storage service" \
+ -d %{_localstatedir}/lib/ceph \
+ -g ceph \
+ -s /sbin/nologin \
+ ceph
%endif
exit 0