From ad9edf8a54a902e50385e4455431594379a34523 Mon Sep 17 00:00:00 2001 From: MichaƂ Nasiadka Date: Tue, 30 Mar 2021 14:14:21 +0200 Subject: octavia: Fix log dir permissions Change-Id: I1644fbd7d080a2e0c6c31c7cc06f6fc54dc17d1e --- docker/octavia/octavia-base/extend_start.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docker') diff --git a/docker/octavia/octavia-base/extend_start.sh b/docker/octavia/octavia-base/extend_start.sh index dfdaafe8c..b27a88a31 100644 --- a/docker/octavia/octavia-base/extend_start.sh +++ b/docker/octavia/octavia-base/extend_start.sh @@ -7,6 +7,9 @@ OCTAVIA_LOG_DIR=/var/log/kolla/octavia if [[ ! -d "${OCTAVIA_LOG_DIR}" ]]; then mkdir -p ${OCTAVIA_LOG_DIR} fi +if [[ $(stat -c %U:%G ${OCTAVIA_LOG_DIR}) != "octavia:kolla" ]]; then + chown -R octavia:kolla /var/log/kolla/octavia +fi if [[ $(stat -c %a ${OCTAVIA_LOG_DIR}) != "755" ]]; then chmod 755 ${OCTAVIA_LOG_DIR} fi -- cgit v1.2.3