Rebase to 3.20
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user