This commit is contained in:
@@ -66,9 +66,13 @@ WRITE_TOKEN=$(echo "$CONFIG" | jq -r '.write_tokens[0]')
|
||||
|
||||
BASE_TAG="autotest"
|
||||
|
||||
if ! command -v wget &> /dev/null; then
|
||||
echo "wget could not be found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# test if server is running
|
||||
if ! curl -s "${HOSTURL}/status" | jq -r '.result' | grep -q 'success'; then
|
||||
if ! wget -qO- "${HOSTURL}/status" | jq -r '.result' | grep -q 'success'; then
|
||||
die "server is not running on ${HOSTURL}"
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user