Weave status only returns success if both router and DNS are up
This commit is contained in:
1 parent
66f4fd94e3
commit
0005715b1a
1 file changed
+3
-2
@@ -555,9 +555,10 @@ case "$COMMAND" in
|
||||
http_call $CONTAINER_NAME $HTTP_PORT POST /connect -d "peer=$1"
|
||||
;;
|
||||
status)
|
||||
http_call $CONTAINER_NAME $HTTP_PORT GET /status || true
|
||||
if http_call $CONTAINER_NAME $HTTP_PORT GET /status; then ROUTER_UP=true; else ROUTER_UP=false; fi
|
||||
echo
|
||||
http_call $DNS_CONTAINER_NAME $DNS_HTTP_PORT GET /status
|
||||
if http_call $DNS_CONTAINER_NAME $DNS_HTTP_PORT GET /status; then DNS_UP=true; else DNS_UP=false; fi
|
||||
$ROUTER_UP && $DNS_UP
|
||||
;;
|
||||
ps)
|
||||
[ $# -eq 0 ] || usage
|
||||
|
||||
Reference in new issue
Block a user