Weave status returns success irrespective of whether router or DNS up

This commit is contained in:
Adam Harrison committed 2015-03-18 16:46:51 +00:00
1 parent 6c5dbe0d01
commit 2e7c281b46
1 file changed
+2 -3
+2 -3
View File
@@ -555,10 +555,9 @@ case "$COMMAND" in
http_call $CONTAINER_NAME $HTTP_PORT POST /connect -d "peer=$1"
;;
status)
if http_call $CONTAINER_NAME $HTTP_PORT GET /status; then ROUTER_UP=true; else ROUTER_UP=false; fi
http_call $CONTAINER_NAME $HTTP_PORT GET /status || true
echo
if http_call $DNS_CONTAINER_NAME $DNS_HTTP_PORT GET /status; then DNS_UP=true; else DNS_UP=false; fi
$ROUTER_UP && $DNS_UP
http_call $DNS_CONTAINER_NAME $DNS_HTTP_PORT GET /status || true
;;
ps)
[ $# -eq 0 ] || usage