kolla/docker/ec2-api/extend_start.sh
Sven Anderson cede69b96d Add ec2-api image
Initial image for EC2-API, a standalone service for OpenStack that
supports AWS EC2 and VPC API.

Change-Id: Ia8d611cc3988499baf15e731fd053f38ad9b5079
2017-05-29 17:13:05 +02:00

16 lines
422 B
Bash

#!/bin/bash
if [[ ! -d "/var/log/kolla/ec2-api" ]]; then
mkdir -p /var/log/kolla/ec2-api
fi
if [[ $(stat -c %a /var/log/kolla/ec2-api) != "755" ]]; then
chmod 755 /var/log/kolla/ec2-api
fi
# 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
ec2-api-manage db_sync
exit 0
fi