From 239bea3a2b3fa9ebb0de7343d53dc420b57a8e3f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 3 Feb 2014 11:54:55 -0200 Subject: Fix .org lookup --- files/domain-check | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/domain-check b/files/domain-check index 89a39f8..ec5be77 100755 --- a/files/domain-check +++ b/files/domain-check @@ -301,7 +301,10 @@ check_domain_status() # The whois Expiration data should resemble the following: "Expiration Date: 09-may-2008" # for .in, .info, .org domains - if [ "${TLDTYPE}" == "in" -o "${TLDTYPE}" == "info" -o "${TLDTYPE}" == "org" ]; + if [ "${TLDTYPE}" == "org" ]; + then + DOMAINDATE=`cat ${WHOIS_TMP} | ${AWK} '/Registry Expiry Date:/ { print $4 }' | cut -d':' -f2` + elif [ "${TLDTYPE}" == "in" -o "${TLDTYPE}" == "info" ]; then DOMAINDATE=`cat ${WHOIS_TMP} | ${AWK} '/Expiration Date:/ { print $2 }' | cut -d':' -f2` elif [ "${TLDTYPE}" == "biz" ]; # for .biz domain -- cgit v1.2.3