kolla/docker/octavia/octavia-api/extend_start.sh
Christian Berendt 77cfb749d1 octavia: bootstrap octavia_persistence database
Change-Id: I141dbf2f5338ce3ce8f66d0b948463a084b94f56
2023-07-14 17:37:09 +02:00

12 lines
322 B
Bash

#!/bin/bash
# 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
octavia-db-manage upgrade head
octavia-db-manage upgrade_persistence
exit 0
fi
. /usr/local/bin/kolla_httpd_setup