diff options
author | Mateja <mail@matejamaric.com> | 2021-03-16 20:06:54 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-03-16 20:06:54 +0100 |
commit | 209a38beb535c8a921a23b08cf6af21d74fb9e95 (patch) | |
tree | ddf967d8c8881950288469283e95730cb25da74a | |
parent | 2261020e0b9f879cb99bd01b2cf474079538ed3a (diff) | |
download | setup-scripts-209a38beb535c8a921a23b08cf6af21d74fb9e95.tar.gz setup-scripts-209a38beb535c8a921a23b08cf6af21d74fb9e95.zip |
Don't "curl to bash" for nodejs installation.
-rwxr-xr-x | setup.sh | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -114,8 +114,13 @@ wget -O /tmp/composer-setup.php https://getcomposer.org/installer sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer #sudo composer self-update -#sudo apt -t buster-backports install -y nodejs npm -curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - +#curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - +wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - +VERSION=node_14.x +DISTRO="$(lsb_release -s -c)" +echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list +echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list +sudo apt-get update sudo apt-get install -y nodejs |