Rebase to 3.20

This commit is contained in:
thespad
2024-05-31 15:09:15 +01:00
parent 27b64204b4
commit c48eef1549
7 changed files with 13 additions and 8 deletions

View File

@@ -1,6 +1,8 @@
#!/bin/bash
PORT=$(xmlstarlet sel -T -t -v /Config/Port /config/config.xml)
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