diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8fc8ef59..e271c904 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1680,15 +1680,15 @@ VCENTER-SSL(){ SERVER="https://${VCHOSTNAME}" CRED="administrator@scity.vs:$(pass iDSVC)" - echo -en "${idsCL[LightCyan]}Checking if certificate needs to be updated on vCenter... ${idsCL[Default]}" + echo -en "${idsCL[LightCyan]}Checking days left on vCenter cert... ${idsCL[Default]}" VCCERTDAYS=$(${FOLDER}/ssl-cert-check/ssl-cert-check -p 443 -s ${VCHOSTNAME} -N) VCCERTDAYS=${VCCERTDAYS#*=} if [ "${VCCERTDAYS}" -lt "29" ]; then - echo -e "${idsCL[Green]}Certificate is still valid for ${VCCERTDAYS} days yet, no noeed to update${idsCL[Default]}" + echo -e "${idsCL[Green]}${VCCERTDAYS} days left, Certificate is still valid, no noeed to update${idsCL[Default]}" exit 0 else - echo -e "${idsCL[Green]}Certificate needs to be updated${idsCL[Default]}" + echo -e "${idsCL[Yellow]}${VCCERTDAYS} days left, Certificate needs to be updated${idsCL[Default]}" echo fi @@ -1717,7 +1717,7 @@ VCENTER-SSL(){ echo -e "${idsCL[Green]}Done${idsCL[Default]}" echo echo -e "${idsCL[Green]}The vCenter certifcate has been updated${idsCL[Default]}" - + echo } ADD_LOGROTATE_CRONTAB(){ if ! crontab -l | grep -q '/opt/idssys/nodemgmt/tmp-logrotate'; then