From 3aea9b39a5632723be5b078d0fc809769d67823b Mon Sep 17 00:00:00 2001 From: aptalca Date: Thu, 6 Feb 2020 09:30:53 -0500 Subject: [PATCH] code-server: nodejs check/add gnupg --- root/etc/cont-init.d/99-nodejs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/etc/cont-init.d/99-nodejs b/root/etc/cont-init.d/99-nodejs index 158e9c03..fac3c8dc 100644 --- a/root/etc/cont-init.d/99-nodejs +++ b/root/etc/cont-init.d/99-nodejs @@ -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' \