Merge pull request #262 from linuxserver/code-server-nodejs-focal

code-server-nodejs update to 14, detect version
This commit is contained in:
aptalca 2021-11-29 11:31:44 -05:00 committed by GitHub
commit 7d00141eae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,9 +5,10 @@ if ! dpkg -l | grep gnupg > /dev/null; then
apt-get update && apt-get install -y gnupg
fi
source /etc/lsb-release
[[ ! -f "/etc/apt/sources.list.d/nodesource.list" ]] && \
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
echo "deb https://deb.nodesource.com/node_14.x ${DISTRIB_CODENAME} main" \
> /etc/apt/sources.list.d/nodesource.list
[[ ! -f "/etc/apt/sources.list.d/yarn.list" ]] && \
curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \