aboutsummaryrefslogtreecommitdiff
path: root/files/bin
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-09-10 11:43:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-09-10 11:43:11 -0300
commit2ae76f9e0e2e297f19d5e3c38db0c69f29e7ea57 (patch)
tree5b2ad29d57e055adf4ef8c03c24ff03c7e4f3943 /files/bin
parent476e411f5f6149636668fa134db1437f7ffa3b39 (diff)
downloadpuppet-nodo-2ae76f9e0e2e297f19d5e3c38db0c69f29e7ea57.tar.gz
puppet-nodo-2ae76f9e0e2e297f19d5e3c38db0c69f29e7ea57.tar.bz2
Fixing output for .br domains when expiry date is not available on domain-check (2)
Diffstat (limited to 'files/bin')
-rwxr-xr-xfiles/bin/domain-check6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/bin/domain-check b/files/bin/domain-check
index ebefb6b..5abb30c 100755
--- a/files/bin/domain-check
+++ b/files/bin/domain-check
@@ -361,7 +361,7 @@ check_domain_status()
DOMAINDIFF=$(date_diff ${NOWJULIAN} ${DOMAINJULIAN})
else
# We have no information
- DOMAINDIFF="undef"
+ DOMAINDIFF="Unknown"
fi
if [ "${TLDTYPE}" == "br" ] && [ ! -z "${DOMAINDATE}" ]; # for .br domain
@@ -370,9 +370,9 @@ check_domain_status()
DOMAINDATE=`$DATE -d ${DOMAINDATE} +"%m-%b-%Y"`
fi
- if [ ${DOMAINDIFF} == 'undef' ];
+ if [ ${DOMAINDIFF} == 'Unknown' ];
then
- prints ${DOMAIN} "No info" "$?" "?" ${REGISTRAR}
+ prints ${DOMAIN} "Unknown" "Unknown" "Unknown" ${REGISTRAR}
elif [ ${DOMAINDIFF} -lt 0 ]
then
if [ "${ALARM}" = "TRUE" ]