From b8ed28243dd17a249de549618b865f437bd9b092 Mon Sep 17 00:00:00 2001 From: hms Date: Wed, 3 Feb 2021 15:34:38 -0800 Subject: [PATCH] removed old code and added datetime var --- update-NebulaNodeCert | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/update-NebulaNodeCert b/update-NebulaNodeCert index 25c7081..3fb753a 100644 --- a/update-NebulaNodeCert +++ b/update-NebulaNodeCert @@ -29,9 +29,7 @@ if [[ -n $1 ]]; then exit fi -#if [[ -n ${IPADDRESS} ]]; then -# echo "IP Address = ${IPADDRESS}" -#fi +DATETIME=$(date '%(%Y%m%d-%H%M%S)T\n' -1) NODENAME=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s .[].details.name | sed 's/["]//g') NODEIPS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.ips | sed 's/[]["]//g') @@ -48,4 +46,5 @@ if [[ $CERTISCASTATUS == false ]]; then echo "Node IPs: ${NODEIPS}" echo "Node Groups: ${NODEGROUPS[@]}" echo "Certificate isCa Status: ${CERTISCASTATUS}" + echo "DateTime: ${DATETIME}" fi \ No newline at end of file