Merge pull request #9 from aptalca/code-server-nodejs-fix

code-server: nodejs check/add gnupg
This commit is contained in:
Ryan Kuba 2020-02-06 07:02:06 -08:00 committed by GitHub
commit 4eb044e637
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,9 @@
#!/usr/bin/with-contenv bash
echo "**** installing nodejs dev environment ****"
if ! dpkg -l | grep gnupg > /dev/null; then
apt-get update && apt-get install -y gnupg
fi
[[ ! -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' \