From 3ab927c9b04e372b66196d9b253fe32cbdf75a65 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Wed, 5 Dec 2012 16:15:26 +0100 Subject: [PATCH] Use getent to find if a group exists, not grep Change-Id: Ia181f41ae122dc5e5d3d33633dfd1d0e7420f8a9 --- lib/nova | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nova b/lib/nova index 6445a07392..29238d4320 100644 --- a/lib/nova +++ b/lib/nova @@ -232,7 +232,7 @@ EOF LIBVIRT_DAEMON=libvirt-bin else # http://wiki.libvirt.org/page/SSHPolicyKitSetup - if ! grep ^libvirtd: /etc/group >/dev/null; then + if ! getent group libvirtd >/dev/null; then sudo groupadd libvirtd fi sudo bash -c 'cat </etc/polkit-1/localauthority/50-local.d/50-libvirt-remote-access.pkla