]> git.za3k.com Git - za3k.git/commitdiff
separate tests
authorZachary Vance <za3k@za3k.com>
Thu, 21 Apr 2016 06:53:13 +0000 (23:53 -0700)
committerZachary Vance <za3k@za3k.com>
Thu, 21 Apr 2016 06:53:13 +0000 (23:53 -0700)
cgi-bin/service.status.d/ddns [new file with mode: 0644]
cgi-bin/service.status.d/ddns.za3k.com

diff --git a/cgi-bin/service.status.d/ddns b/cgi-bin/service.status.d/ddns
new file mode 100644 (file)
index 0000000..226f792
--- /dev/null
@@ -0,0 +1,3 @@
+IP="$(curl -q icanhazip.com 2>/dev/null)"
+host deadtree.moreorcs.com ns.za3k.com | grep "has"
+host deadtree.moreorcs.com ns.za3k.com | grep "has" | grep "${IP}" >/dev/null
index a2db1399420dbfc4d7473f5e0522a392710af191..2a717a8f65038c53ae6f7965d452393cdd79214e 100644 (file)
@@ -2,8 +2,3 @@ ALL=$(curl -iLs https://ddns.za3k.com)
 HEADER=$(echo "$ALL" | head -1)
 echo "${ALL}" | grep -q "404 Not Found" >/dev/null || exit 1
 echo "${ALL}" | grep -q "no domain" >/dev/null || exit 1
-echo "ddns.za3k.com is up"
-
-IP="$(curl -q icanhazip.com 2>/dev/null)"
-host deadtree.moreorcs.com ns.za3k.com | grep "has" | grep "${IP}" || exit 1
-echo "deadtree.moreorcs.com == this ip"