Skip to content

Commit

Permalink
copy build tag
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 committed Jan 24, 2024
1 parent 4a0ec26 commit 2164797
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/nm-quick.sh
Original file line number Diff line number Diff line change
Expand Up @@ -704,12 +704,13 @@ upgrade() {
print_logo
unset IMAGE_TAG
IMAGE_TAG=$UI_IMAGE_TAG
BUILD_TAG=$UI_IMAGE_TAG
unset BUILD_TAG
echo "-----------------------------------------------------"
echo "Provide Details for pro installation:"
echo " 1. Log into https://app.netmaker.io"
echo " 2. follow instructions to get a license at: https://docs.netmaker.io/ee/ee-setup.html"
echo " 3. Retrieve License and Tenant ID"
echo " 4. note email address"
echo "-----------------------------------------------------"
unset LICENSE_KEY
while [ -z "$LICENSE_KEY" ]; do
Expand All @@ -720,7 +721,7 @@ upgrade() {
read -p "Tenant ID: " TENANT_ID
done
save_config

local BASE_URL="https://raw.githubusercontent.com/gravitl/netmaker/$BUILD_TAG"
local COMPOSE_OVERRIDE_URL="$BASE_URL/compose/docker-compose.pro.yml"
wget -qO "$SCRIPT_DIR"/docker-compose.override.yml $COMPOSE_OVERRIDE_URL
local CADDY_URL="$BASE_URL/docker/Caddyfile-pro"
Expand All @@ -735,7 +736,9 @@ upgrade() {
downgrade () {
print_logo
unset IMAGE_TAG
unset BUILD_TAG
IMAGE_TAG=$UI_IMAGE_TAG
BUILD_TAG=$UI_IMAGE_TAG
save_config
if [ -a "$SCRIPT_DIR"/docker-compose.override.yml ]; then
rm -f "$SCRIPT_DIR"/docker-compose.override.yml
Expand Down

0 comments on commit 2164797

Please sign in to comment.