From fd95e80dc74b7482b5f55166cd5f36ace54a0955 Mon Sep 17 00:00:00 2001 From: abhishek9686 Date: Wed, 28 Feb 2024 08:41:53 +0700 Subject: [PATCH] rm certs ref from upgrade script --- scripts/nm-upgrade.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/nm-upgrade.sh b/scripts/nm-upgrade.sh index c5dfe6a6d..eae81555b 100755 --- a/scripts/nm-upgrade.sh +++ b/scripts/nm-upgrade.sh @@ -5,8 +5,7 @@ CONFIG_FILE=netmaker.env SCRIPT_DIR=$(dirname "$(realpath "$0")") CONFIG_PATH="$SCRIPT_DIR/$CONFIG_FILE" NM_QUICK_VERSION="0.1.0" -LATEST=$(curl -s https://api.github.com/repos/gravitl/netmaker/releases/latest | grep "tag_name" | cut -d : -f 2,3 | tr -d [:space:],\") - +LATEST="v0.21.2" if [ "$(id -u)" -ne 0 ]; then echo "This script must be run as root" exit 1 @@ -440,7 +439,6 @@ install_netmaker() { 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" - wget -qO "$SCRIPT_DIR"/nm-certs.sh "$BASE_URL/scripts/nm-certs.sh" wget -qO "$SCRIPT_DIR"/wait.sh "$BASE_URL/docker/wait.sh" chmod +x "$SCRIPT_DIR"/wait.sh @@ -450,10 +448,6 @@ install_netmaker() { ln -fs "$SCRIPT_DIR/netmaker.env" "$SCRIPT_DIR/.env" save_config - # Fetch / update certs using certbot - chmod +x "$SCRIPT_DIR"/nm-certs.sh - "$SCRIPT_DIR"/nm-certs.sh - echo "Starting containers..." # increase the timeouts