|
@@ -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}" |