kolla/docker/gnocchi/gnocchi-base/extend_start.sh
zhubingbing 4817cd730c change source to . in gnocchi-base dockerfile
TrivialFix

Change-Id: I6b2d9331f5f28999f0d6cd037357883fdf0770a3
2016-10-12 07:56:41 +00:00

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