fix data arg

This commit is contained in:
abhishek9686 2024-10-04 14:27:31 +04:00
parent 0060d2bd04
commit 675a900b9a

View file

@ -177,7 +177,7 @@ configure_netclient() {
nmctl network create --name internet-access-vpn --ipv4_addr 100.65.0.0/16 nmctl network create --name internet-access-vpn --ipv4_addr 100.65.0.0/16
sleep 5 sleep 5
INET_NODE_ID=$(sudo cat /etc/netclient/nodes.json | jq -r .internet-access-vpn.id) INET_NODE_ID=$(sudo cat /etc/netclient/nodes.json | jq -r .internet-access-vpn.id)
curl --location --request POST "https://api.${NETMAKER_BASE_DOMAIN}/api/v1/nodes/internet-access-vpn/${INET_NODE_ID}/inet_gw" -data '{}' --header "Authorization: Bearer ${MASTER_KEY}" curl --location --request POST "https://api.${NETMAKER_BASE_DOMAIN}/api/v1/nodes/internet-access-vpn/${INET_NODE_ID}/inet_gw" --data '{}' --header "Authorization: Bearer ${MASTER_KEY}"
fi fi
set -e set -e