Skip to content

Commit

Permalink
rm certs ref from upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 committed Feb 28, 2024
1 parent a9ce842 commit fd95e80
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/nm-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fd95e80

Please sign in to comment.