X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=trusty%2Fdebian%2Fceilometer-common.postinst.in;h=623271b3d33ef4809480c44ac76e3497a34a7e11;hb=6863ccd4a94487d12c2d7620a357303eb8fbef2b;hp=2e84d15748c69757d9c164820c4a9fd96f63975d;hpb=914e32e8f728ae15c637e48628a99fa4af9ba0a0;p=openstack-build%2Fceilometer-build.git diff --git a/trusty/debian/ceilometer-common.postinst.in b/trusty/debian/ceilometer-common.postinst.in index 2e84d15..623271b 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 + if getent group libvirt ; then + LIBVIRT_GROUP=libvirt + elif getent group libvirtd ; then LIBVIRT_GROUP=libvirtd else - LIBVIRT_GROUP=libvirt + if dpkg-vendor --derives-from ubuntu ; then + LIBVIRT_GROUP=libvirtd + else + LIBVIRT_GROUP=libvirt + fi fi if ! getent group ${LIBVIRT_GROUP} >/dev/null; then