[Pkg-libvirt-commits] [libvirt] 04/09: Skip any debconf prompting if user and group are already there
Guido Guenther
agx at moszumanska.debian.org
Thu Dec 22 14:07:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
agx pushed a commit to annotated tag debian/2.5.0-2
in repository libvirt.
commit fd7c2bb091c5f657da1c70488186f654e3cc0561
Author: Guido Günther <agx at sigxcpu.org>
Date: Thu Dec 22 11:40:27 2016 +0100
Skip any debconf prompting if user and group are already there
to not interfere with existing intallations
---
debian/libvirt-daemon-system.NEWS | 2 +-
debian/libvirt-daemon-system.config | 7 +++++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/debian/libvirt-daemon-system.NEWS b/debian/libvirt-daemon-system.NEWS
index 94367e5..f0aba0d 100644
--- a/debian/libvirt-daemon-system.NEWS
+++ b/debian/libvirt-daemon-system.NEWS
@@ -1,4 +1,4 @@
-libvirt (2.4.0-2uidgid3) UNRELEASED; urgency=medium
+libvirt (2.5.0-2~) unstable; urgency=medium
libvirt-daemon-system now uses the allocated uid and gid 64055
for the libvirt-qemu user and group on new installations, when
diff --git a/debian/libvirt-daemon-system.config b/debian/libvirt-daemon-system.config
index caf0ac2..344f190 100755
--- a/debian/libvirt-daemon-system.config
+++ b/debian/libvirt-daemon-system.config
@@ -1,5 +1,12 @@
#!/bin/sh -e
+# Only perform this check/warning if the libvirt user groups aren't there
+# already
+if getent passwd libvirt-qemu >/dev/null \
+&& getent group libvirt-qemu >/dev/null; then
+ exit 0
+fi
+
# Source debconf library.
. /usr/share/debconf/confmodule
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt.git
More information about the Pkg-libvirt-commits
mailing list