File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -46,22 +46,18 @@ if ! (command -v apt-add-repository >/dev/null) then
46
46
sudo apt-get -y install software-properties-common
47
47
fi
48
48
49
- # add node.js repo
50
- # echo | apt-add-repository ppa:chris-lea/node.js
51
- wget -qO- https://deb.nodesource.com/setup_14.x | sudo -E bash -
52
-
53
- # update once more after adding new repos
54
- sudo apt-get update
55
-
56
49
# install nginx
57
- sudo apt-get -y install curl gnupg2 ca-certificates lsb-release
58
50
echo " deb http://nginx.org/packages/ubuntu $( lsb_release -cs) nginx" \
59
51
| sudo tee /etc/apt/sources.list.d/nginx.list
60
52
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
61
53
sudo apt-get update
62
54
sudo apt-get -y install nginx
63
55
64
56
# install node.js
57
+ # add node.js repo
58
+ # echo | apt-add-repository ppa:chris-lea/node.js
59
+ wget -qO- https://deb.nodesource.com/setup_14.x | sudo -E bash -
60
+ sudo apt-get update
65
61
sudo apt-get -y install nodejs || (echo " Failed to install nodejs." ; exit)
66
62
67
63
set +e
You can’t perform that action at this time.
0 commit comments