Skip to content

Commit

Permalink
Replace deprecated nodejs repo setup with updated method
Browse files Browse the repository at this point in the history
  • Loading branch information
hairlessbear committed Nov 21, 2023
1 parent 9ebbfcd commit 105273a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/install/pre_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ then
fi
sudo usermod -aG docker "$FACTUSER"

# Setup npm repository as described in https://github.com/nodesource/distributions/blob/master/README.md#debinstall
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
# Setup npm repository as described in https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list

IS_VENV=$(python3 -c 'import sys; print(sys.exec_prefix!=sys.base_prefix)')
SUDO=""
Expand Down

0 comments on commit 105273a

Please sign in to comment.