From 8f1a4604d941cd074745241c469e52a4df01a34e Mon Sep 17 00:00:00 2001 From: hms Date: Wed, 3 Feb 2021 14:13:54 -0800 Subject: [PATCH] updated parameters --- update-NebulaNodeCert | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update-NebulaNodeCert b/update-NebulaNodeCert index 6a0c092..2512d58 100644 --- a/update-NebulaNodeCert +++ b/update-NebulaNodeCert @@ -11,8 +11,8 @@ case $key in shift # past argument shift # past value ;; - -n|--newcertname) - NEWCERTNAME="$2" + -n|--nebulacertbinpath) + NEBULACERTBINPATH="$2" shift # past argument shift # past value ;; @@ -33,8 +33,8 @@ set -- "${POSITIONAL[@]}" # restore positional parameters # echo "IP Address = ${IPADDRESS}" #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 IPs: ${NODEIPS}" \ No newline at end of file