kolla/docker/gnocchi/gnocchi-api/extend_start.sh
Jeffrey Zhang c74fb5058f Remove legacy resource types creation
Parameter --create-legacy-resource-types is removed by
Ia7d4ea3d1b9b631ac4c399ae7245e42a531f862a

Change-Id: Ic9580dee9c9c79c4f5d1968a269106067fdb73fc
2017-04-16 17:03:00 +08:00

19 lines
668 B
Bash

#!/bin/bash
# NOTE(pbourke): httpd will not clean up after itself in some cases which
# results in the container not being able to restart. (bug #1489676, 1557036)
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
# Loading Apache2 ENV variables
source /etc/apache2/envvars
rm -rf /var/run/apache2/*
else
rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*
fi
# 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
sudo -H -u gnocchi gnocchi-upgrade --logfile /var/log/kolla/gnocchi/gnocchi-upgrade.log
exit 0
fi