diff --git a/bin/installbfa.sh b/bin/installbfa.sh index 9ab1b85a8da14ddac30ee5d8c75650cc643d6e54..2ab7a0966621ff946ccf192f9ef936ba16a58d7a 100755 --- a/bin/installbfa.sh +++ b/bin/installbfa.sh @@ -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