Merge "Fix the permission issue of placement-api log"

This commit is contained in:
Zuul 2019-03-13 21:33:51 +00:00 committed by Gerrit Code Review
commit c8bbd0b102

View File

@ -4,6 +4,9 @@ if [[ ! -d "/var/log/kolla/placement" ]]; then
mkdir -p /var/log/kolla/placement mkdir -p /var/log/kolla/placement
touch /var/log/kolla/placement/placement-api.log touch /var/log/kolla/placement/placement-api.log
fi fi
if [[ $(stat -c %U:%G /var/log/kolla/placement) != "placement:kolla" ]]; then
chown -R placement:kolla /var/log/kolla/placement
fi
if [[ $(stat -c %a /var/log/kolla/placement) != "755" ]]; then if [[ $(stat -c %a /var/log/kolla/placement) != "755" ]]; then
chmod 755 /var/log/kolla/placement chmod 755 /var/log/kolla/placement
chmod 644 /var/log/kolla/placement/placement-api.log chmod 644 /var/log/kolla/placement/placement-api.log