-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinstaller.sh
24 lines (22 loc) · 916 Bytes
/
installer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
#+----------------------------------------------------------------------------+
#+ ServerAdmin NodeJS 4.x Auto-Installer for Ubuntu
#+----------------------------------------------------------------------------+
#+ Author: Jonathan Tittle
#+ Copyright: 2017 ServerAdmin.sh and Jonathan Tittle
#+ GitHub: https://github.com/serveradminsh/serveradmin-installers
#+ Issues: https://github.com/serveradminsh/serveradmin-installers/issues
#+ License: GPL v3.0
#+ OS: Ubuntu 16.04, Ubuntu 16.10
#+ Release: 1.0.0
#+ Website: https://serveradmin.sh
#+----------------------------------------------------------------------------+
clear
if [ "${EUID}" != 0 ];
then
echo "ServerAdmin NodeJS Auto-Installer should be executed as the root user."
exit
fi
cd /opt \
&& curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - \
&& apt-get install -y nodejs