kolla/docker/monasca/monasca-base/extend_start.sh
Doug Szumski 14e1aff964 Update Monasca base and API images
* Support deploying APIs via Apache + mod_wsgi
* Include InfluxDB client so that the Monasca
  API can talk to InfluxDB. Support for Cassandra
  can be added in a later commit.

Change-Id: If71db99d4731967e814c5263f2c2d6f90391c2a6
Partially-Implements: blueprint monasca-containers
2018-06-08 16:06:14 +01:00

16 lines
433 B
Bash

#!/bin/bash
# Create log directory, with appropriate permissions
MONASCA_LOG_DIR="/var/log/kolla/monasca"
if [[ ! -d "$MONASCA_LOG_DIR" ]]; then
mkdir -p $MONASCA_LOG_DIR
fi
if [[ $(stat -c %U:%G ${MONASCA_LOG_DIR}) != "monasca:kolla" ]]; then
chown monasca:kolla ${MONASCA_LOG_DIR}
fi
if [[ $(stat -c %a ${MONASCA_LOG_DIR}) != "755" ]]; then
chmod 755 ${MONASCA_LOG_DIR}
fi
. /usr/local/bin/kolla_monasca_extend_start