aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-04-15 20:47:13 +0200
committerMateja <mail@matejamaric.com>2021-04-15 20:47:13 +0200
commit433529de8bd63be268d2a4b3acfe20ea4eaa479b (patch)
tree262f4ed63682662da877de2f2f9758fc52d58ed1
parent1e2e811bab0676e464a39a7d9574e4090cb73135 (diff)
parent209a38beb535c8a921a23b08cf6af21d74fb9e95 (diff)
downloadsetup-scripts-433529de8bd63be268d2a4b3acfe20ea4eaa479b.tar.gz
setup-scripts-433529de8bd63be268d2a4b3acfe20ea4eaa479b.zip
Merge branch 'master' of github.com:MatejaMaric/debian-setup
-rwxr-xr-xsetup.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/setup.sh b/setup.sh
index f4b3c2d..48ce100 100755
--- a/setup.sh
+++ b/setup.sh
@@ -115,8 +115,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