Fixing permission for libvirtd.log

Fixing permissions so all users could access libvirtd.log

Change-Id: I6f63a847ba9c5591a87922d3b117b101100b2fad
Closes-Bug: 1563430
Co-Authored-By: Steven Dake <stdake@cisco.com>
This commit is contained in:
Serguei Bezverkhi 2016-03-29 13:25:56 -04:00
parent a9539d9abe
commit 584690a9f2

View File

@ -15,7 +15,10 @@ fi
if [[ ! -d "/var/log/kolla/libvirt" ]]; then
mkdir -p /var/log/kolla/libvirt
touch /var/log/kolla/libvirt/libvirtd.log
chmod 644 /var/log/kolla/libvirt/libvirtd.log
fi
if [[ $(stat -c %a /var/log/kolla/libvirt) != "755" ]]; then
chmod 755 /var/log/kolla/libvirt
chmod 644 /var/log/kolla/libvirt/libvirtd.log
fi