kolla/docker/vitrage/vitrage-base/extend_start.sh
Eduardo Gonzalez 02ce804a44 Fix vitrage images
Vitrage start api service under apache or uwsgi.
We have not created a migration to uwsgi.
This change adds apache packages needed for api
also add rdo binaries to rpm distros.

Adds missing collector image.

Change-Id: Iecb32e321b46f9b567af25fa6acafbe9a292bbca
Closes-Bug: #1681613
2017-10-14 16:54:00 +00:00

15 lines
384 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
. /usr/local/bin/kolla_vitrage_extend_start