Skip to content

Commit 74b01d6

Browse files
committed
horizon: Ensure horizon owns /var/log/kolla/horizon
Needed-By: https://review.opendev.org/c/openstack/kolla-ansible/+/961614 Change-Id: I9011f9a6d065b85ff76852950e4537070a12b437 Signed-off-by: Michal Nasiadka <[email protected]>
1 parent 46e89ee commit 74b01d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker/horizon/extend_start.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ if [[ ! -d "/var/log/kolla/horizon" ]]; then
252252
mkdir -p /var/log/kolla/horizon
253253
fi
254254

255+
if [[ $(stat -c %U:%G /var/log/kolla/horizon) != "horizon:kolla" ]]; then
256+
chown -R horizon:kolla /var/log/kolla/horizon
257+
fi
258+
255259
if [[ $(stat -c %a /var/log/kolla/horizon) != "755" ]]; then
256260
chmod 755 /var/log/kolla/horizon
257261
fi

0 commit comments

Comments
 (0)