| commit | fb501d01ac07fd2272696b62743d40b4263ac033 | [log] [tgz] |
|---|---|---|
| author | Jenkins <jenkins@review.openstack.org> | Wed Dec 05 19:49:31 2012 +0000 |
| committer | Gerrit Code Review <review@openstack.org> | Wed Dec 05 19:49:31 2012 +0000 |
| tree | 69b0eb23e18b9359c5a07685ee20d314d69b7d84 | |
| parent | dea5766bf319939e5c83aad8bc162166a8824a69 [diff] | |
| parent | 3ab927c9b04e372b66196d9b253fe32cbdf75a65 [diff] |
Merge "Use getent to find if a group exists, not grep"
diff --git a/lib/nova b/lib/nova index 970806d..3a4d34d 100644 --- a/lib/nova +++ b/lib/nova
@@ -232,7 +232,7 @@ 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 <<EOF >/etc/polkit-1/localauthority/50-local.d/50-libvirt-remote-access.pkla