octavia: Fix log dir permissions

Change-Id: I1644fbd7d080a2e0c6c31c7cc06f6fc54dc17d1e
This commit is contained in:
Michał Nasiadka 2021-03-30 14:14:21 +02:00 committed by Michal Nasiadka
parent ce1cb06268
commit ad9edf8a54

View File

@ -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