Browse Source

updated parameters

master
HMSheets 3 years ago
parent
commit
8f1a4604d9
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      update-NebulaNodeCert

+ 4
- 4
update-NebulaNodeCert View File

@@ -11,8 +11,8 @@ case $key in
shift # past argument shift # past argument
shift # past value shift # past value
;; ;;
-n|--newcertname)
NEWCERTNAME="$2"
-n|--nebulacertbinpath)
NEBULACERTBINPATH="$2"
shift # past argument shift # past argument
shift # past value shift # past value
;; ;;
@@ -33,8 +33,8 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
# echo "IP Address = ${IPADDRESS}" # echo "IP Address = ${IPADDRESS}"
#fi #fi


NODENAME=./nebula-cert print -path ${CERTPATH} -json | jq -s .[].details.name
NODEIPS=./nebula-cert print -path ${CERTPATH} -json | jq -s .[].details.ips
NODENAME=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s .[].details.name)
NODEIPS=$(${NEBULACERTBINPATH} -path ${CERTPATH} -json | jq -s .[].details.ips)


echo "Node Name: ${NODENAME}" echo "Node Name: ${NODENAME}"
echo "Node IPs: ${NODEIPS}" echo "Node IPs: ${NODEIPS}"

Loading…
Cancel
Save