From 773074c68a58d464c800d77ed5becf378eea1228 Mon Sep 17 00:00:00 2001 From: chenxing Date: Thu, 7 Dec 2017 19:21:36 +0800 Subject: [PATCH] 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 --- docker/vitrage/vitrage-api/extend_start.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/vitrage/vitrage-api/extend_start.sh b/docker/vitrage/vitrage-api/extend_start.sh index 4596bf6a1d..3504f6ab20 100644 --- a/docker/vitrage/vitrage-api/extend_start.sh +++ b/docker/vitrage/vitrage-api/extend_start.sh @@ -9,3 +9,8 @@ if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then else rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd* fi + +if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then + vitrage-dbsync + exit 0 +fi