2020-10-30 19:19:31 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-05-12 15:47:15 +02:00
|
|
|
export HEALTH=${CONDUCTOR_HEALTH:-http://conductor-server:8080/health}
|
2020-10-30 19:19:31 +01:00
|
|
|
|
2021-05-12 15:47:15 +02:00
|
|
|
echo 'Waiting for Conductor at ' $HEALTH '...'
|
2020-10-30 19:19:31 +01:00
|
|
|
|
2021-05-12 15:47:15 +02:00
|
|
|
while [[ "$(curl -s -o /dev/null -L -w ''%{http_code}'' $HEALTH)" != 200 ]]; do
|
2020-10-30 19:19:31 +01:00
|
|
|
echo 'still waiting ...'
|
|
|
|
sleep 5
|
|
|
|
done
|
|
|
|
|
|
|
|
echo 'Starting default workers...'
|
|
|
|
|
2021-09-14 09:24:25 +02:00
|
|
|
python3 PyExec.py Http Shell Eval Mail HttpBridge
|