[Pkg-libvirt-commits] [SCM] Libvirt Debian packaging branch, master, updated. debian/1.0.3-1
Guido Günther
agx at sigxcpu.org
Fri Mar 8 18:39:52 UTC 2013
The following commit has been merged in the master branch:
commit f59b09cc4a4d443b4ff81b0ad3d6eaaf931611da
Author: Guido Günther <agx at sigxcpu.org>
Date: Fri Mar 8 19:06:09 2013 +0100
Only add libvirt-qemu user to libvirt-qemu group once
when the group gets created
diff --git a/debian/libvirt-bin.postinst b/debian/libvirt-bin.postinst
index e706f88..5e3f127 100644
--- a/debian/libvirt-bin.postinst
+++ b/debian/libvirt-bin.postinst
@@ -23,13 +23,10 @@ add_users_groups()
addgroup --system libvirt
fi
- # user and group libvirt runs qemu/kvm instances with
if ! getent group kvm >/dev/null; then
addgroup --quiet --system kvm
fi
- if ! getent group libvirt-qemu >/dev/null; then
- addgroup --quiet --system libvirt-qemu
- fi
+ # user and group libvirt runs qemu/kvm instances with
if ! getent passwd libvirt-qemu >/dev/null; then
adduser --quiet \
--system \
@@ -42,7 +39,10 @@ add_users_groups()
-gecos "Libvirt Qemu" \
libvirt-qemu
fi
- adduser libvirt-qemu libvirt-qemu
+ if ! getent group libvirt-qemu >/dev/null; then
+ addgroup --quiet --system libvirt-qemu
+ adduser libvirt-qemu libvirt-qemu
+ fi
}
--
Libvirt Debian packaging
More information about the Pkg-libvirt-commits
mailing list