weizhouapache commented on code in PR #7304:
URL: https://github.com/apache/cloudstack/pull/7304#discussion_r1123846517


##########
scripts/util/keystore-cert-import:
##########
@@ -121,6 +121,10 @@ if [ -f "$LIBVIRTD_FILE" ]; then
     ln -sf /etc/pki/libvirt/servercert.pem /etc/pki/libvirt-vnc/server-cert.pem
     ln -sf /etc/pki/libvirt/private/serverkey.pem 
/etc/pki/libvirt-vnc/server-key.pem
     cloudstack-setup-agent -s > /dev/null
+
+    QEMU_GROUP=$(cat /etc/group | awk -F: '{ print $1}' | grep qemu)
+    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

Review Comment:
   @nvazquez 
   1. You can add 'head -n1' to get the first result.
   2. You may need to check if result is empty or not 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to