Skip to content

Commit f7db20a

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "horizon: Ensure horizon owns /var/log/kolla/horizon"
2 parents 88121bb + 74b01d6 commit f7db20a

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)