aboutsummaryrefslogtreecommitdiff
path: root/docker/common/keystone/start.sh
blob: 4dce4c7575367b96b614acb97dd762089f7d350b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

set -o errexit

CMD="/usr/bin/keystone-all"
ARGS=""

# loading common functions
source /opt/kolla/kolla-common.sh

set_configs

# Bootstrap and exit if BOOTSTRAP variable is set
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
    su -c "keystone-manage db_sync" keystone
    exit 0
fi

exec $CMD $ARGS