Mercurial > p > roundup > code
comparison scripts/Docker/roundup_healthcheck @ 7679:cae50e4ba467
fix: quote variable substitution to prevent whitespace issue
Again the tracker variable should not have embeded whitespace but....
Courtesy of https://www.shellcheck.net/
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 24 Oct 2023 22:03:55 -0400 |
| parents | 7b9bddda9d2d |
| children | 9ceb85d9df32 |
comparison
equal
deleted
inserted
replaced
| 7678:095f379bf639 | 7679:cae50e4ba467 |
|---|---|
| 2 | 2 |
| 3 # if there are multiple trackers, d=demo t=tracker ... | 3 # if there are multiple trackers, d=demo t=tracker ... |
| 4 # returns last one for testing that server is up. Does not test | 4 # returns last one for testing that server is up. Does not test |
| 5 # each tracker. | 5 # each tracker. |
| 6 tracker=$(ps -ef | sed -ne '/roundup-server/s/^.*\s\(\w*\)=.*$/\1/p') | 6 tracker=$(ps -ef | sed -ne '/roundup-server/s/^.*\s\(\w*\)=.*$/\1/p') |
| 7 wget -q -O /dev/null --no-verbose http://localhost:8080/${tracker:-demo}/ | 7 wget -q -O /dev/null --no-verbose http://localhost:8080/"${tracker:-demo}"/ |
