From: Thomas Goirand Date: Thu, 30 May 2013 16:13:58 +0000 (+0800) Subject: Creates the correct libvirt group if the package is installed in Ubuntu. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d0ba5e1cb44a5a61f1f0a607eeed3ef336a57d9f;p=openstack-build%2Fceilometer-build.git Creates the correct libvirt group if the package is installed in Ubuntu. Rewritten-From: 3577e25dd97c609c92d2da1a71448148b4acea6e --- diff --git a/trusty/debian/ceilometer-common.postinst.in b/trusty/debian/ceilometer-common.postinst.in index aa927b0..e4f3daf 100644 --- a/trusty/debian/ceilometer-common.postinst.in +++ b/trusty/debian/ceilometer-common.postinst.in @@ -6,8 +6,14 @@ 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 + LIBVIRT_GROUP=libvirt + fi + if ! getent group libvirt >/dev/null; then - addgroup --system libvirt + addgroup --system ${LIBVIRT_GROUP} fi # user and group libvirt runs qemu/kvm instances with diff --git a/trusty/debian/changelog b/trusty/debian/changelog index 5f551a8..4d6cccc 100644 --- a/trusty/debian/changelog +++ b/trusty/debian/changelog @@ -5,6 +5,7 @@ ceilometer (2013.1-4) unstable; urgency=low * Ran wrap-and-sort to clean debian/control. * Replaced pkgos_var_user_group nova by pkgos_adduser, as we don't want to create the log / lib dirs of nova. + * Creates the correct libvirt group if the package is installed in Ubuntu. -- Thomas Goirand Mon, 27 May 2013 11:07:59 +0800