Update nodemgmt-scripts.sh

This commit is contained in:
2023-11-22 20:26:56 -06:00
parent 6d9b5fc494
commit be20ac7f41

View File

@@ -454,7 +454,7 @@ export PDNS_Ttl=60
LIVEMD5=$(ssh -q root@${NM_VC_HOSTNAME} "md5sum /etc/vmware-rhttpproxy/ssl/rui.crt | cut -d\ -f1")
CURRENTMD5=$(ssh -q root@${NM_VC_HOSTNAME} "md5sum ${VC_CERT} | cut -d\ -f1")
if [ "$LIVEMD5" == "$CURRENTMD5" ] && [ "${1}" != "force" ]; then
if [ "$LIVEMD5" == "$CURRENTMD5" ] && [ "${1}" != "force2" ]; then
echo -e "${idsCL[Yellow]}Certificates remains the same, no newer certificates exist${idsCL[Default]}"
echo
exit 0