diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 280a6cb7..33940839 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1985,7 +1985,7 @@ VCENTER-SSL(){ LIVEMD5=$(ssh root@$VCHOSTNAME "md5sum $CURRENTLIVE | cut -d\ -f1") CURRENTMD5=$(md5sum $CERTDIR/cert.pem | cut -d\ -f1) - if [ "$LIVEMD5" == "$CURRENTMD5" ]; then + if [ "$LIVEMD5" == "$CURRENTMD5" ] && [ "${1}" != "force" ]; then echo -e "${idsCL[Yellow]}Certificates remains the same, no newer certificates exist${idsCL[Default]}" echo exit 0