kolla/docker/venus/venus-api/extend_start.sh
howardlee 772de9662c Adding db sync script for venus
The script for database synchronization is missing in the venus-api image,
which makes it impossible to create the required database tables during
venus deployment.

Closes-Bug: #2029915
Change-Id: Ibbf75fa73b8397ea3686b42cec6cad6d8f6d3858
2023-11-07 08:36:02 +00:00

9 lines
235 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
venus_manager db sync
exit 0
fi