Skip to content

Commit d066f4b

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "heat: Ensure log files are owned by heat user"
2 parents e478adc + b0714b2 commit d066f4b

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)