diff options
| author | Grant Limberg <[email protected]> | 2023-11-20 08:16:10 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-20 08:16:10 -0800 |
| commit | 663ed73768a895a8681b6ec57059109073adf8f9 (patch) | |
| tree | 041d277be72e51228e91c660ddb0ae9384156eaa /ext/central-controller-docker/main.sh | |
| parent | a477688e5147ee534efb27f02f21f5db75cd47e1 (diff) | |
| parent | d37dce508ac3e430099d3ba36f7e755b17f3bb82 (diff) | |
check hooks are enabled before firing
Diffstat (limited to 'ext/central-controller-docker/main.sh')
| -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 |
