Merge "Fix zun log dir permissions"

This commit is contained in:
Jenkins 2017-07-11 02:46:07 +00:00 committed by Gerrit Code Review
commit 6a437907b2
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@
if [[ ! -d "/var/log/kolla/zun" ]]; then
mkdir -p /var/log/kolla/zun
fi
if [[ $(stat -c %U:%G /var/log/kolla/zun) != "zun:kolla" ]]; then
chown zun:kolla /var/log/kolla/zun
fi
if [[ $(stat -c %a /var/log/kolla/zun) != "755" ]]; then
chmod 755 /var/log/kolla/zun
fi