]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: unconditionally set ceph user's primary group to ceph (SUSE) 9106/head
authorNathan Cutler <ncutler@suse.com>
Thu, 12 May 2016 17:23:31 +0000 (19:23 +0200)
committerNathan Cutler <ncutler@suse.com>
Thu, 12 May 2016 19:42:11 +0000 (21:42 +0200)
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>
ceph.spec.in

index 392a82e2cb1263344f3e0a6c8b6b1a7fed43f7ee..e5f3915c9e60476617fc5b0fc71105380af0c384 100644 (file)
@@ -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