Skip extend_start.sh if KOLLA_SKIP_EXTEND_START is defined

This is all kolla-mesos needs, so that we can run the extend_start
within the context of our start script. We need to do this to track
dependencies of the commands (one of which is the extend_start).

implements blueprint custom-extend-start

Change-Id: Ib844adc9c42dd8862281eb3f903d6c2b4695a34d
This commit is contained in:
Angus Salkeld 2016-02-23 11:09:08 +10:00
parent 35660e0e10
commit 2597bf8cfd
1 changed files with 4 additions and 2 deletions

View File

@ -25,8 +25,10 @@ sudo -E kolla_set_configs
CMD=$(cat /run_command)
ARGS=""
# Run additional commands if present
source kolla_extend_start
if [[ ! "${!KOLLA_SKIP_EXTEND_START[@]}" ]]; then
# Run additional commands if present
source kolla_extend_start
fi
echo "Running command: '${CMD}${ARGS:+ $ARGS}'"
exec ${CMD} ${ARGS}