mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 09:32:32 +08:00
copy build tag
This commit is contained in:
parent
4a0ec26217
commit
2164797896
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue