diff options
| author | Zuul <zuul@review.opendev.org> | 2025-08-08 08:17:37 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2025-08-08 08:17:37 +0000 |
| commit | d066f4bfe07f3f167068ec26dd8b9796cf5a39d9 (patch) | |
| tree | c517a20eafdc347cc879f4c04d841c9dd3a39ef4 /docker | |
| parent | e478adcbe63d81faa44bc09f72461fd6a7fcdf94 (diff) | |
| parent | b0714b2e98e1a46a445c3ca8ae4b9dc85bfdeef3 (diff) | |
| download | kolla-d066f4bfe07f3f167068ec26dd8b9796cf5a39d9.tar.gz kolla-d066f4bfe07f3f167068ec26dd8b9796cf5a39d9.zip | |
Merge "heat: Ensure log files are owned by heat user"
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/heat/heat-base/extend_start.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/heat/heat-base/extend_start.sh b/docker/heat/heat-base/extend_start.sh index a73f17345..1c1e86b8e 100644 --- a/docker/heat/heat-base/extend_start.sh +++ b/docker/heat/heat-base/extend_start.sh @@ -3,6 +3,9 @@ if [[ ! -d "/var/log/kolla/heat" ]]; then mkdir -p /var/log/kolla/heat fi +if [[ $(stat -c %U:%G /var/log/kolla/heat) != "heat:kolla" ]]; then + chown -R heat:kolla /var/log/kolla/heat +fi if [[ $(stat -c %a /var/log/kolla/heat) != "755" ]]; then chmod 755 /var/log/kolla/heat fi |
