Update nodemgmt-scripts.sh

This commit is contained in:
2022-12-07 18:14:19 -06:00
parent c408c2bf40
commit f4d871c234

View File

@@ -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