updates installer to now deploy node 16

This commit is contained in:
Lars Berning 2021-10-17 13:26:22 +02:00
parent 95e45ff20c
commit ce62f2af84
No known key found for this signature in database
GPG Key ID: 028E73C9E1D8A0B3
1 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ then
print "You are running a system with ARM v6 architecture. Official support for Node.js has been discontinued" print "You are running a system with ARM v6 architecture. Official support for Node.js has been discontinued"
print "for ARM v6. Installing experimental unofficial build of Node.js..." print "for ARM v6. Installing experimental unofficial build of Node.js..."
NODEJS_VERSION=v14.18.1 NODEJS_VERSION=v16.11.1
sudo rm -rf /opt/nodejs sudo rm -rf /opt/nodejs
sudo mkdir -p /opt/nodejs sudo mkdir -p /opt/nodejs
sudo curl https://unofficial-builds.nodejs.org/download/release/$NODEJS_VERSION/node-$NODEJS_VERSION-linux-armv6l.tar.gz | sudo tar -xz --strip 1 -C /opt/nodejs/ sudo curl https://unofficial-builds.nodejs.org/download/release/$NODEJS_VERSION/node-$NODEJS_VERSION-linux-armv6l.tar.gz | sudo tar -xz --strip 1 -C /opt/nodejs/
@ -137,7 +137,7 @@ then
sudo ln -sfn /opt/nodejs/bin/npm /usr/local/bin/npm sudo ln -sfn /opt/nodejs/bin/npm /usr/local/bin/npm
else else
print "Installing Node.js..." print "Installing Node.js..."
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash - curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs sudo apt-get install -y nodejs
fi fi