Skip to content

Commit

Permalink
fix nm-quick.sh -p issue (#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
yabinma authored Dec 3, 2024
1 parent 4bdc098 commit 508c4cf
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions scripts/nm-quick.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,8 @@ save_config() { (
if [ "$INSTALL_TYPE" = "pro" ]; then
save_config_item NETMAKER_TENANT_ID "$NETMAKER_TENANT_ID"
save_config_item LICENSE_KEY "$LICENSE_KEY"
if [ "$UPGRADE_FLAG" = "yes" ];then
save_config_item METRICS_EXPORTER "on"
save_config_item PROMETHEUS "on"
fi
save_config_item METRICS_EXPORTER "on"
save_config_item PROMETHEUS "on"
save_config_item SERVER_IMAGE_TAG "$IMAGE_TAG-ee"
else
save_config_item METRICS_EXPORTER "off"
Expand Down Expand Up @@ -559,7 +557,7 @@ set_install_vars() {
echo " api.$NETMAKER_BASE_DOMAIN"
echo " broker.$NETMAKER_BASE_DOMAIN"

if [ "$UPGRADE_FLAG" = "yes" ]; then
if [ "$INSTALL_TYPE" = "pro" ]; then
echo " prometheus.$NETMAKER_BASE_DOMAIN"
echo " netmaker-exporter.$NETMAKER_BASE_DOMAIN"
echo " grafana.$NETMAKER_BASE_DOMAIN"
Expand Down Expand Up @@ -632,13 +630,12 @@ install_netmaker() {
if [ "$INSTALL_TYPE" = "pro" ]; then
local COMPOSE_OVERRIDE_URL="$BASE_URL/compose/docker-compose.pro.yml"
local CADDY_URL="$BASE_URL/docker/Caddyfile-pro"
fi
wget -qO "$SCRIPT_DIR"/docker-compose.yml $COMPOSE_URL
if [ "$UPGRADE_FLAG" = "yes" ]; then
wget -qO "$SCRIPT_DIR"/docker-compose.override.yml $COMPOSE_OVERRIDE_URL
elif [ -a "$SCRIPT_DIR"/docker-compose.override.yml ]; then
rm -f "$SCRIPT_DIR"/docker-compose.override.yml
fi
wget -qO "$SCRIPT_DIR"/docker-compose.yml $COMPOSE_URL

wget -qO "$SCRIPT_DIR"/Caddyfile "$CADDY_URL"
wget -qO "$SCRIPT_DIR"/netmaker.default.env "$BASE_URL/scripts/netmaker.default.env"
wget -qO "$SCRIPT_DIR"/mosquitto.conf "$BASE_URL/docker/mosquitto.conf"
Expand Down

0 comments on commit 508c4cf

Please sign in to comment.