diff options
| author | Grant Limberg <[email protected]> | 2023-11-17 14:53:22 -0800 |
|---|---|---|
| committer | Grant Limberg <[email protected]> | 2023-11-17 14:53:30 -0800 |
| commit | d37dce508ac3e430099d3ba36f7e755b17f3bb82 (patch) | |
| tree | 041d277be72e51228e91c660ddb0ae9384156eaa /ext | |
| parent | 2e882b4af2d32959d6020b3e40b6530050ba7204 (diff) | |
don't require temporal for central controller startup
Diffstat (limited to 'ext')
| -rwxr-xr-x | ext/central-controller-docker/main.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/central-controller-docker/main.sh b/ext/central-controller-docker/main.sh index 04778a27..5583b3ad 100755 --- a/ext/central-controller-docker/main.sh +++ b/ext/central-controller-docker/main.sh @@ -100,12 +100,14 @@ else done fi -echo "Waiting for temporal" -while ! nc -z ${ZT_TEMPORAL_HOST} ${ZT_TEMPORAL_PORT}; do - echo "waiting..."; - sleep 1; -done -echo "Temporal is up" +if [ -n "$ZT_TEMPORAL_HOST" ] && [ -n "$ZT_TEMPORAL_PORT" ]; then + echo "waiting for temporal..." + while ! nc -z ${ZT_TEMPORAL_HOST} ${ZT_TEMPORAL_PORT}; do + echo "waiting..."; + sleep 1; + done + echo "Temporal is up" +fi export GLIBCXX_FORCE_NEW=1 export GLIBCPP_FORCE_NEW=1 |
