kolla/docker/vitrage/vitrage-api/extend_start.sh
chenxing 773074c68a Add vitrage-dbsync to extend_start.sh of vitrage-api image
According to this line[1], dbsync command needs to be added to
the extend_start.sh file of vitrage-api image.

[1] https://github.com/openstack/vitrage/blob/master/devstack/plugin.sh#L139

Change-Id: If30dc5c761ef6164b68afe217ee85c167e73d236
Closes-Bug: #1736927
2017-12-07 19:21:36 +08:00

17 lines
448 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
. /etc/apache2/envvars
rm -rf /var/run/apache2/*
else
rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*
fi
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
vitrage-dbsync
exit 0
fi