Browse code

Ensure correct polkit config written for RHEL6

Ensure the correct polkit config is written for RHEL6, or nova-cpu
will fail to start with libvirt permission errors

Change-Id: I871ef4e03157883db15be41222b7338765fbb843

Ian Wienand authored on 2013/05/02 11:02:22
Showing 1 changed files
... ...
@@ -297,7 +297,7 @@ EOF
297 297
 
298 298
 
299 299
         if is_fedora || is_suse; then
300
-            if is_fedora && [[ "$os_RELEASE" -le "17" ]]; then
300
+            if is_fedora && [[  $DISTRO =~ (rhel6) || "$os_RELEASE" -le "17" ]]; then
301 301
                 sudo bash -c 'cat <<EOF >/etc/polkit-1/localauthority/50-local.d/50-libvirt-remote-access.pkla
302 302
 [libvirt Management Access]
303 303
 Identity=unix-group:libvirtd