mirror of
https://github.com/ceph/ceph
synced 2025-03-30 15:31:01 +00:00
Merge pull request #9106 from SUSE/wip-15869
rpm: unconditionally set ceph user's primary group to ceph (SUSE) Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
This commit is contained in:
commit
048aa3f0e7
@ -895,8 +895,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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user