Skip to content
Snippets Groups Projects
Commit d1956cab authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

node7 -> 10

parent 41742195
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ set -e
if [ `id -u` -ne 0 ]
then
echo "We are not root, but we need to be. Trying sudo now."
exec sudo $0
fi
......@@ -56,11 +57,11 @@ function nodejs_pre
yesno n Add nodejs software repository PGP key &&
apt-key adv --keyserver keyserver.ubuntu.com --recv ${NODEJSPGP}
fi
local file=/etc/apt/sources.list.d/nodejs.list
local file=/etc/apt/sources.list.d/nodesource.list
if [ ! -r "$file" ]
then
info Adding nodejs repository to apt sources.
echo "deb https://deb.nodesource.com/node_7.x $(lsb_release -sc) main" > $file
echo "deb https://deb.nodesource.com/node_10.x $(lsb_release -sc) main" > $file
info And now updating the software package list.
apt update
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment