|
@@ -168,7 +168,7 @@ configure_netclient() {
|
|
sleep 5
|
|
sleep 5
|
|
nmctl node create_remote_access_gateway netmaker $NODE_ID
|
|
nmctl node create_remote_access_gateway netmaker $NODE_ID
|
|
sleep 2
|
|
sleep 2
|
|
-# create network for internet access vpn
|
|
|
|
|
|
+ # set failover
|
|
if [ "$INSTALL_TYPE" = "pro" ]; then
|
|
if [ "$INSTALL_TYPE" = "pro" ]; then
|
|
#setup failOver
|
|
#setup failOver
|
|
curl --location --request POST "https://api.${NETMAKER_BASE_DOMAIN}/api/v1/node/${NODE_ID}/failover" --header "Authorization: Bearer ${MASTER_KEY}"
|
|
curl --location --request POST "https://api.${NETMAKER_BASE_DOMAIN}/api/v1/node/${NODE_ID}/failover" --header "Authorization: Bearer ${MASTER_KEY}"
|