X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=trusty%2Fdebian%2Fceilometer-common.postinst.in;h=346f2c626732c41d5cbd226ca06c62d17a724330;hb=ddd421f87c09593e8cefeabb65349303988bdf87;hp=2e84d15748c69757d9c164820c4a9fd96f63975d;hpb=eace735061648b7c8af9aa8fa4b63dcb56dbca7e;p=openstack-build%2Fceilometer-build.git diff --git a/trusty/debian/ceilometer-common.postinst.in b/trusty/debian/ceilometer-common.postinst.in index 2e84d15..346f2c6 100644 --- a/trusty/debian/ceilometer-common.postinst.in +++ b/trusty/debian/ceilometer-common.postinst.in @@ -6,10 +6,16 @@ set -e # We need to do that for ceilometer-agent-compute libvirt_user_group () { - if dpkg-vendor --derives-from ubuntu ; then - LIBVIRT_GROUP=libvirtd - else + if getent group libvirt ; then LIBVIRT_GROUP=libvirt + elif getent group libvirtd ; then + LIBVIRT_GROUP=libvirtd + elif + if dpkg-vendor --derives-from ubuntu ; then + LIBVIRT_GROUP=libvirtd + else + LIBVIRT_GROUP=libvirt + fi fi if ! getent group ${LIBVIRT_GROUP} >/dev/null; then