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
This commit is contained in:
Michal Nasiadka
2024-12-23 12:35:55 +01:00
parent 3cb7bea93b
commit 969cbc7367

View File

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