kolla/docker/cinder/cinder-api/extend_start.sh
Pierre Riteau 96b9390bef Remove unused variable MAX_NUMBER
This variable won't be used by Kolla Ansible once change
Ia786d037f5484f18294188639c956d4ed5ffbc2a is merged.

Change-Id: I600e24896e74496f05387183c10d6c8c6bbbb17b
Depends-On: https://review.opendev.org/735617
2020-06-24 14:08:29 +00:00

17 lines
379 B
Bash

#!/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
cinder-manage db sync
exit 0
fi
if [[ "${!KOLLA_OSM[@]}" ]]; then
cinder-manage db online_data_migrations
exit 0
fi
. /usr/local/bin/kolla_httpd_setup