kolla/docker/ceilometer/ceilometer-notification/extend_start.sh
Christian Berendt ea8592b077 ceilometer: do not fail when using an unsupported database type
This is necessary if e.g. Prometheus is used. Then the
ceilometer-upgrade is not needed.

Signed-off-by: Christian Berendt <berendt@betacloud-solutions.de>
Change-Id: I8690e5543e6b5f37f41fe35f659910fc869c034f
2020-11-27 11:37:52 +01:00

12 lines
385 B
Bash

#!/bin/bash
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
if [[ "${CEILOMETER_DATABASE_TYPE}" == "gnocchi" ]]; then
ceilometer-upgrade ${CEILOMETER_UPGRADE_PARAMS}
fi
sudo chown -R ceilometer: /var/lib/ceilometer/
exit 0
fi