Browse Source

removed old code and added datetime var

master
HMSheets 3 years ago
parent
commit
b8ed28243d
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      update-NebulaNodeCert

+ 2
- 3
update-NebulaNodeCert View File

@@ -29,9 +29,7 @@ if [[ -n $1 ]]; then
exit exit
fi 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') 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') 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 IPs: ${NODEIPS}"
echo "Node Groups: ${NODEGROUPS[@]}" echo "Node Groups: ${NODEGROUPS[@]}"
echo "Certificate isCa Status: ${CERTISCASTATUS}" echo "Certificate isCa Status: ${CERTISCASTATUS}"
echo "DateTime: ${DATETIME}"
fi fi

Loading…
Cancel
Save