servarr-stack – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #!/bin/bash |
2 | |||
3 | if [[ -f /config/config.xml ]]; then |
||
4 | PORT=$(xmlstarlet sel -T -t -v /Config/Port /config/config.xml) |
||
5 | fi |
||
6 | |||
7 | if [[ $(curl -sL "http://localhost:${PORT:-8787}/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then |
||
8 | exit 0 |
||
9 | else |
||
10 | exit 1 |
||
11 | fi |