4817cd730c
TrivialFix Change-Id: I6b2d9331f5f28999f0d6cd037357883fdf0770a3
16 lines
418 B
Bash
16 lines
418 B
Bash
#!/bin/bash
|
|
|
|
# Create log dir for Gnocchi logs
|
|
GNOCCHI_LOG_DIR="/var/log/kolla/gnocchi"
|
|
if [[ ! -d "${GNOCCHI_LOG_DIR}" ]]; then
|
|
mkdir -p ${GNOCCHI_LOG_DIR}
|
|
fi
|
|
if [[ $(stat -c %U:%G ${GNOCCHI_LOG_DIR}) != "gnocchi:kolla" ]]; then
|
|
chown gnocchi:kolla ${GNOCCHI_LOG_DIR}
|
|
fi
|
|
if [[ $(stat -c %a ${GNOCCHI_LOG_DIR}) != "755" ]]; then
|
|
chmod 755 ${GNOCCHI_LOG_DIR}
|
|
fi
|
|
|
|
. /usr/local/bin/kolla_gnocchi_extend_start
|