From f5c123cb40d373dfdcdc39f09611f72d390a4e55 Mon Sep 17 00:00:00 2001 From: Paulo Sousa Date: Wed, 24 Jul 2024 15:40:15 -0300 Subject: [PATCH] nodejs: fix nodejs wildcard version deploy --- nodejs/deploy | 5 +++++ nodejs/install | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nodejs/deploy b/nodejs/deploy index e431236..119f449 100755 --- a/nodejs/deploy +++ b/nodejs/deploy @@ -113,6 +113,11 @@ fi nvm cache clear +# removing default alias - fix X.Y.* wildcard bug on subsequents deploys +if [[ -f ~/.nvm/alias/default ]]; then + rm ~/.nvm/alias/default +fi + rm -f ~/.nvm_bin ln -s $NVM_BIN ~/.nvm_bin diff --git a/nodejs/install b/nodejs/install index cb7f543..44fd6aa 100755 --- a/nodejs/install +++ b/nodejs/install @@ -8,7 +8,7 @@ set -euf -o pipefail SOURCE_DIR=/var/lib/tsuru source ${SOURCE_DIR}/base/rc/config -curl -fsSLo- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | sudo -E -u ${USER} bash +curl -fsSLo- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | sudo -E -u ${USER} bash cat >> ~/.profile <<-EOF export PATH=${PATH}:${HOME}/.nvm_bin