Mercurial > p > roundup > code
view scripts/Docker/roundup_healthcheck @ 7675:b3c3e508b18f
fix: move POSIX unsupported items outside of set -e
If the non-poisx fail under a POSIX shell, allow the script to still
run but with the errors. So all non-POSIX supported stuff goes before
set -e.
Courtesy of https://www.shellcheck.net/
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 24 Oct 2023 21:50:39 -0400 |
| parents | 7b9bddda9d2d |
| children | cae50e4ba467 |
line wrap: on
line source
#! /bin/sh # if there are multiple trackers, d=demo t=tracker ... # returns last one for testing that server is up. Does not test # each tracker. tracker=$(ps -ef | sed -ne '/roundup-server/s/^.*\s\(\w*\)=.*$/\1/p') wget -q -O /dev/null --no-verbose http://localhost:8080/${tracker:-demo}/
