|
@@ -6,7 +6,7 @@ SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
|
CONFIG_PATH="$SCRIPT_DIR/$CONFIG_FILE"
|
|
CONFIG_PATH="$SCRIPT_DIR/$CONFIG_FILE"
|
|
NM_QUICK_VERSION="0.1.1"
|
|
NM_QUICK_VERSION="0.1.1"
|
|
LATEST=$(curl -s https://api.github.com/repos/gravitl/netmaker/releases/latest | grep "tag_name" | cut -d : -f 2,3 | tr -d [:space:],\")
|
|
LATEST=$(curl -s https://api.github.com/repos/gravitl/netmaker/releases/latest | grep "tag_name" | cut -d : -f 2,3 | tr -d [:space:],\")
|
|
-
|
|
|
|
|
|
+BRANCH=master
|
|
if [ $(id -u) -ne 0 ]; then
|
|
if [ $(id -u) -ne 0 ]; then
|
|
echo "This script must be run as root"
|
|
echo "This script must be run as root"
|
|
exit 1
|
|
exit 1
|
|
@@ -617,7 +617,7 @@ install_netmaker() {
|
|
|
|
|
|
echo "Pulling config files..."
|
|
echo "Pulling config files..."
|
|
|
|
|
|
- local BASE_URL="https://raw.githubusercontent.com/gravitl/netmaker/master"
|
|
|
|
|
|
+ local BASE_URL="https://raw.githubusercontent.com/gravitl/netmaker/$BRANCH"
|
|
local COMPOSE_URL="$BASE_URL/compose/docker-compose.yml"
|
|
local COMPOSE_URL="$BASE_URL/compose/docker-compose.yml"
|
|
local CADDY_URL="$BASE_URL/docker/Caddyfile"
|
|
local CADDY_URL="$BASE_URL/docker/Caddyfile"
|
|
if [ "$INSTALL_TYPE" = "pro" ]; then
|
|
if [ "$INSTALL_TYPE" = "pro" ]; then
|