kolla-ansible/docker/ceilometer/ceilometer-base/extend_start.sh
Jeffrey Zhang 7555054e72 Fix the failure of ceilometer-api container
* ceilometer-api script is removed and run ceilometer-api by using apache
* fix connection url in ceilometer.conf

Closes-Bug: #1624905
Change-Id: Iffb00ca418bab6521d61b16de4f5760aa1ae1ac7
2016-09-25 14:01:43 +00:00

16 lines
426 B
Bash

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