diff options
Diffstat (limited to 'docker/heat/heat-engine/start.sh')
| -rwxr-xr-x | docker/heat/heat-engine/start.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docker/heat/heat-engine/start.sh b/docker/heat/heat-engine/start.sh new file mode 100755 index 000000000..8f9a6f1cb --- /dev/null +++ b/docker/heat/heat-engine/start.sh @@ -0,0 +1,20 @@ +#!/bin/bash +set -o errexit + +CMD="/usr/bin/heat-engine" +ARGS="" + +# Loading common functions. +source /opt/kolla/kolla-common.sh + +# Execute config strategy +set_configs + +# 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/bash -c "/usr/bin/heat-manage db_sync" heat + exit 0 +fi + +exec $CMD $ARGS |
