mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-08 14:15:25 +08:00
fix: update yml references to json for v0.25.0 (#3083)
This commit is contained in:
parent
c10859a466
commit
19d7bb1ea2
1 changed files with 3 additions and 3 deletions
|
@ -129,7 +129,7 @@ setup_netclient() {
|
|||
|
||||
echo "waiting for netclient to become available"
|
||||
local found=false
|
||||
local file=/etc/netclient/nodes.yml
|
||||
local file=/etc/netclient/nodes.json
|
||||
for ((a = 1; a <= 90; a++)); do
|
||||
if [ -f "$file" ]; then
|
||||
found=true
|
||||
|
@ -147,13 +147,13 @@ setup_netclient() {
|
|||
# configure_netclient - configures server's netclient as a default host and an ingress gateway
|
||||
configure_netclient() {
|
||||
sleep 2
|
||||
NODE_ID=$(sudo cat /etc/netclient/nodes.yml | yq -r .netmaker.commonnode.id)
|
||||
NODE_ID=$(sudo cat /etc/netclient/nodes.json | jq -r .netmaker.id)
|
||||
if [ "$NODE_ID" = "" ] || [ "$NODE_ID" = "null" ]; then
|
||||
echo "Error obtaining NODE_ID for the new network"
|
||||
exit 1
|
||||
fi
|
||||
echo "register complete. New node ID: $NODE_ID"
|
||||
HOST_ID=$(sudo cat /etc/netclient/netclient.yml | yq -r .host.id)
|
||||
HOST_ID=$(sudo cat /etc/netclient/netclient.json | jq -r .id)
|
||||
if [ "$HOST_ID" = "" ] || [ "$HOST_ID" = "null" ]; then
|
||||
echo "Error obtaining HOST_ID for the new network"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue