From 7c029463c4418196871c6880ace0fa91ab5a45a2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 15 Jun 2017 20:31:09 +0100 Subject: [PATCH] Getting nodejs repo gpg key --- src/freedombone-utils-nodejs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index b22b50a3..880d9eb7 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -45,6 +45,11 @@ NODEJS_INSTALLED_APPS_FILE=$HOME/.nodejs-apps function mesh_install_nodejs { # Note: this has to be jessie for now + if [ ! -d ${rootdir}/$INSTALL_DIR ]; then + mkdir ${rootdir}/$INSTALL_DIR + fi + chroot "${rootdir}" wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key > $INSTALL_DIR/node.gpg.key + chroot "${rootdir}" apt-key add $INSTALL_DIR/node.gpg.key echo "deb https://deb.nodesource.com/node_7.x jessie main" > ${rootdir}/etc/apt/sources.list.d/nodesource.list echo "deb-src https://deb.nodesource.com/node_7.x jessie main" >> ${rootdir}/etc/apt/sources.list.d/nodesource.list chroot "${rootdir}" apt-get update @@ -146,6 +151,12 @@ function install_nodejs { fi # Note: this has to be jessie for now + if [ ! -d $INSTALL_DIR ]; then + mkdir $INSTALL_DIR + fi + cd $INSTALL_DIR + wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key > $INSTALL_DIR/node.gpg.key + apt-key add $INSTALL_DIR/node.gpg.key echo "deb https://deb.nodesource.com/node_7.x jessie main" > /etc/apt/sources.list.d/nodesource.list echo "deb-src https://deb.nodesource.com/node_7.x jessie main" >> /etc/apt/sources.list.d/nodesource.list