Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1985,7 +1985,7 @@ VCENTER-SSL(){
|
|||||||
|
|
||||||
LIVEMD5=$(ssh root@$VCHOSTNAME "md5sum $CURRENTLIVE | cut -d\ -f1")
|
LIVEMD5=$(ssh root@$VCHOSTNAME "md5sum $CURRENTLIVE | cut -d\ -f1")
|
||||||
CURRENTMD5=$(md5sum $CERTDIR/cert.pem | 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 -e "${idsCL[Yellow]}Certificates remains the same, no newer certificates exist${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user