12 lines
254 B
Bash
Executable File
12 lines
254 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ -f /config/config.xml ]]; then
|
|
PORT=$(xmlstarlet sel -T -t -v /Config/Port /config/config.xml)
|
|
fi
|
|
|
|
if [[ $(curl -sL "http://localhost:${PORT:-9696}/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi
|