From 57017b0acd0a55cc32c697beba54b6d3e4e37c4d Mon Sep 17 00:00:00 2001 From: Ryan Hallisey Date: Thu, 17 Sep 2015 14:58:02 -0400 Subject: Replace config-external with a JSON file for Cinder Partially-Implements: blueprint replace-config-external Change-Id: Ic247433290b51c9fb613d90e4a9a0f3d11526b35 --- docker/cinder/cinder-api/start.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'docker/cinder/cinder-api') diff --git a/docker/cinder/cinder-api/start.sh b/docker/cinder/cinder-api/start.sh index 6c61b3a4e..2c6e3922f 100755 --- a/docker/cinder/cinder-api/start.sh +++ b/docker/cinder/cinder-api/start.sh @@ -2,14 +2,12 @@ set -o errexit -CMD="/usr/bin/cinder-api" -ARGS="--config-file /etc/cinder/cinder.conf" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) # Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases # of the KOLLA_BOOTSTRAP variable being set, including empty. @@ -18,4 +16,4 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then exit 0 fi -exec $CMD $ARGS +exec $CMD -- cgit v1.2.3