Skip to content

Commit 969cbc7

Browse files
committed
cinder: Fix log dir permission
In order to add support to uwsgi (which is opening the log file after dropping privileges) we need to set proper permissions for /var/log/kolla/cinder directory Change-Id: I46da8fad93febbc462cbe42a0d96ef7d423b8965
1 parent 3cb7bea commit 969cbc7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/cinder/cinder-base/extend_start.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
if [[ ! -d "/var/log/kolla/cinder" ]]; then
44
mkdir -p /var/log/kolla/cinder
55
fi
6+
if [[ $(stat -c %U:%G /var/log/kolla/cinder) != "cinder:kolla" ]]; then
7+
chown -R cinder:kolla /var/log/kolla/cinder
8+
fi
69
if [[ $(stat -c %a /var/log/kolla/cinder) != "755" ]]; then
710
chmod 755 /var/log/kolla/cinder
811
fi

0 commit comments

Comments
 (0)