X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=xenial%2Fdebian%2Fceilometer-common.postinst.in;h=623271b3d33ef4809480c44ac76e3497a34a7e11;hb=f7e0eae3af3b9261b1b1702869acff2696d18d7d;hp=f061e5ed2e3918f9e058772b7537dbb235b35dbd;hpb=f4ccf82dd783f4e4346616a46287324abd3acdbb;p=openstack-build%2Fceilometer-build.git diff --git a/xenial/debian/ceilometer-common.postinst.in b/xenial/debian/ceilometer-common.postinst.in index f061e5e..623271b 100644 --- a/xenial/debian/ceilometer-common.postinst.in +++ b/xenial/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 @@ -51,3 +57,5 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then fi #DEBHELPER# + +exit 0