From: Zachary Vance Date: Thu, 21 Apr 2016 06:58:41 +0000 (-0700) Subject: print anything for ddns.za3k.com X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=c3ab674cbbdc0c35fb37f99331f024c9a7131b5b;p=za3k.git print anything for ddns.za3k.com --- diff --git a/cgi-bin/service.status.d/ddns.za3k.com b/cgi-bin/service.status.d/ddns.za3k.com index 2a717a8..14c7a28 100644 --- a/cgi-bin/service.status.d/ddns.za3k.com +++ b/cgi-bin/service.status.d/ddns.za3k.com @@ -1,4 +1,6 @@ ALL=$(curl -iLs https://ddns.za3k.com) HEADER=$(echo "$ALL" | head -1) +echo "${HEADER}" echo "${ALL}" | grep -q "404 Not Found" >/dev/null || exit 1 echo "${ALL}" | grep -q "no domain" >/dev/null || exit 1 +echo "${ALL}" | tail -n1