Rebase to 3.18 (main)

This commit is contained in:
TheSpad
2023-06-06 15:30:50 +01:00
parent cad5ce4330
commit d70e18aafd
9 changed files with 30 additions and 114 deletions

View File

@@ -1,6 +1,8 @@
#!/bin/bash
if [[ $(curl -sL "http://localhost:9696/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
PORT=$(xmlstarlet sel -T -t -v /Config/Port /config/config.xml)
if [[ $(curl -sL "http://localhost:${PORT:-9696}/ping" | jq -r '.status' 2>/dev/null) = "OK" ]]; then
exit 0
else
exit 1