Skip to content

Commit b47fc50

Browse files
mnasiadkaAlex-Welsh
authored andcommitted
heat: Ensure log files are owned by heat user
Change-Id: I4567aaf352f1f590af2fa7d067768799adad64d1 Signed-off-by: Michal Nasiadka <[email protected]>
1 parent da83250 commit b47fc50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/heat/heat-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/heat" ]]; then
44
mkdir -p /var/log/kolla/heat
55
fi
6+
if [[ $(stat -c %U:%G /var/log/kolla/heat) != "heat:kolla" ]]; then
7+
chown -R heat:kolla /var/log/kolla/heat
8+
fi
69
if [[ $(stat -c %a /var/log/kolla/heat) != "755" ]]; then
710
chmod 755 /var/log/kolla/heat
811
fi

0 commit comments

Comments
 (0)