cede69b96d
Initial image for EC2-API, a standalone service for OpenStack that supports AWS EC2 and VPC API. Change-Id: Ia8d611cc3988499baf15e731fd053f38ad9b5079
16 lines
422 B
Bash
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
|