kolla/docker/vitrage/vitrage-base/extend_start.sh
chenxing dfe72847f4 Add vitrage images
Co-Authored-By: zhubingbing <zhubingbing10@gmail.com>

Change-Id: I8cac1be47edad8590d9bd1222d45a127953d50a6
blueprint vitrage-containers
2017-01-21 06:00:31 +00:00

13 lines
339 B
Bash
Executable File

#!/bin/bash
VITRAGE_LOG_DIR="/var/log/kolla/vitrage"
if [[ ! -d "${VITRAGE_LOG_DIR}" ]]; then
mkdir -p ${VITRAGE_LOG_DIR}
fi
if [[ $(stat -c %U:%G ${VITRAGE_LOG_DIR}) != "vitrage:kolla" ]]; then
chown vitrage:kolla ${VITRAGE_LOG_DIR}
fi
if [[ $(stat -c %a ${VITRAGE_LOG_DIR}) != "755" ]]; then
chmod 755 ${VITRAGE_LOG_DIR}
fi