File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ if [ -f "$LIBVIRTD_FILE" ]; then
122122 ln -sf /etc/pki/libvirt/private/serverkey.pem /etc/pki/libvirt-vnc/server-key.pem
123123 cloudstack-setup-agent -s > /dev/null
124124
125- QEMU_GROUP=$( sed -n ' s/^group=//p' /etc/libvirt/qemu.conf | awk -F ' "' ' {print $2} ' | tail -n1)
125+ QEMU_GROUP=$( sed -n ' s/^group\s* =//p' /etc/libvirt/qemu.conf | tr -d ' "' | tr -d ' ' | tr -d " ' " | tail -n1)
126126 if [ ! -z " ${QEMU_GROUP// } " ]; then
127127 chgrp $QEMU_GROUP /etc/pki/libvirt /etc/pki/libvirt-vnc /etc/pki/CA /etc/pki/libvirt/private /etc/pki/libvirt/servercert.pem /etc/pki/libvirt/private/serverkey.pem /etc/pki/CA/cacert.pem /etc/pki/libvirt-vnc/ca-cert.pem /etc/pki/libvirt-vnc/server-cert.pem /etc/pki/libvirt-vnc/server-key.pem
128128 chmod 750 /etc/pki/libvirt /etc/pki/libvirt-vnc /etc/pki/CA /etc/pki/libvirt/private /etc/pki/libvirt/servercert.pem /etc/pki/libvirt/private/serverkey.pem /etc/pki/CA/cacert.pem /etc/pki/libvirt-vnc/ca-cert.pem /etc/pki/libvirt-vnc/server-cert.pem /etc/pki/libvirt-vnc/server-key.pem
You can’t perform that action at this time.
0 commit comments