aboutsummaryrefslogtreecommitdiff
path: root/docker/cinder/cinder-api/extend_start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/cinder/cinder-api/extend_start.sh')
-rw-r--r--docker/cinder/cinder-api/extend_start.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/cinder/cinder-api/extend_start.sh b/docker/cinder/cinder-api/extend_start.sh
new file mode 100644
index 000000000..9cf68ae86
--- /dev/null
+++ b/docker/cinder/cinder-api/extend_start.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+set -o errexit
+
+# 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
+ su -s /bin/sh -c "cinder-manage db sync" cinder
+ exit 0
+fi