Browse Source

datetime fix

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

+ 3
- 1
update-NebulaNodeCert View File

@@ -29,9 +29,11 @@ if [[ -n $1 ]]; then
exit
fi

DATETIME=$(date '%(%Y%m%d-%H%M%S)T\n' -1)
DATETIME=$(date '+%Y%m%d-%H%M%S')

NODENAME=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s .[].details.name | sed 's/["]//g')
#### TO-DO ####
# Make NODEIPS an Array like NODEGROUPS
NODEIPS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.ips | sed 's/[]["]//g')
NODEGROUPS=($(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.groups | sed 's/[]["]//g' | sed 's/,/ /g'))
CERTISCASTATUS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.isCa)


Loading…
Cancel
Save