File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,21 +5,21 @@ zzz=$(($DEPLOYMENT * 60))
55echo " $SUPERVISOR_PROCESS_NAME : waiting for $zzz seconds before start..."
66sleep $zzz
77
8- if [ ! -z " $METADATA_URI " ]; then
9- task_ip=$( curl ${METADATA_URI} /task | jq -r ' .Containers[0].Networks[0].IPv4Addresses[0]' )
8+ if [ -n " $METADATA_URI " ]; then
9+ task_ip=$( curl " ${METADATA_URI} /task" | jq -r ' .Containers[0].Networks[0].IPv4Addresses[0]' )
1010 export MPCONTRIBS_CLIENT_HOST=$task_ip :$MPCONTRIBS_API_PORT
1111else
1212 export MPCONTRIBS_CLIENT_HOST=$MPCONTRIBS_API_HOST
1313fi
1414
15- pmgrc =$HOME /.pmgrc.yaml
16- [[ ! -e $pmgrc ]] && echo " PMG_DUMMY_VAR: dummy" > $pmgrc
15+ PMGRC =$HOME /.pmgrc.yaml
16+ [[ ! -e " $PMGRC " ]] && echo " PMG_DUMMY_VAR: dummy" > $PMGRC
1717python manage.py migrate --noinput
1818
1919CMD=" gunicorn wsgi"
2020
2121# if [[ -n "$DD_TRACE_HOST" ]]; then
22- # wait-for-it.sh $DD_TRACE_HOST -q -s -t 10 && CMD="ddtrace-run $CMD"
22+ # wait-for-it.sh " $DD_TRACE_HOST" -q -s -t 10 && CMD="ddtrace-run $CMD"
2323# fi
2424
2525exec wait-for-it.sh $MPCONTRIBS_API_HOST -q -s -t 60 -- $CMD
You can’t perform that action at this time.
0 commit comments