sys-cluster/ceph: Allow setting the UID and GID for the ceph user
authorPatrick McLean <chutzpah@gentoo.org>
Fri, 14 Oct 2016 19:03:42 +0000 (12:03 -0700)
committerPatrick McLean <chutzpah@gentoo.org>
Fri, 14 Oct 2016 19:03:42 +0000 (12:03 -0700)
Package-Manager: portage-2.3.2

sys-cluster/ceph/ceph-10.2.3.ebuild

index 9027cfb4e098a698f1ae7010a7e1a489f35f46f5..6fd74abba2b4d893418661676ece1f02e4899138 100644 (file)
@@ -130,8 +130,8 @@ check-reqs_export_vars() {
 }
 
 user_setup() {
-       enewgroup ceph
-       enewuser ceph -1 -1 /var/lib/ceph ceph
+       enewgroup ceph ${CEPH_GID}
+       enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
 }
 
 emake_python_bindings() {