diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-09-10 11:43:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-09-10 11:43:11 -0300 |
commit | 2ae76f9e0e2e297f19d5e3c38db0c69f29e7ea57 (patch) | |
tree | 5b2ad29d57e055adf4ef8c03c24ff03c7e4f3943 | |
parent | 476e411f5f6149636668fa134db1437f7ffa3b39 (diff) | |
download | puppet-nodo-2ae76f9e0e2e297f19d5e3c38db0c69f29e7ea57.tar.gz puppet-nodo-2ae76f9e0e2e297f19d5e3c38db0c69f29e7ea57.tar.bz2 |
Fixing output for .br domains when expiry date is not available on domain-check (2)
-rwxr-xr-x | files/bin/domain-check | 6 |
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" ] |