-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathlinux.sh
executable file
·69 lines (51 loc) · 1.29 KB
/
linux.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
#colors
RED='\033[0;31m'
BLUE='\033[40;38;5;82m'
PURPLE='\033[0;35m'
source ./installers/linux.sh
echo "***** Installing MongoDB, Express-Generator, Angular and NodeJS ********"
sleep 2
echo "***** Updating services ****"
sleep 3
sudo apt-get update
echo -e "Checking for Nodejs"
sleep 2
if [ -x "$(command -v node)" ];
then
echo -e " ${RED} You have NodeJS installed! \033[0m"
else
install_nodejs
fi
echo "Checking for Express Generator"
sleep 2
if [ -x "$(command -v express-generator)" ];
then
echo -e " ${RED} You have express-generator installed! \033[0m"
else
echo -e " ${BLUE} Installing express-generator"
sleep 2
sudo npm install -g express-generator
echo -e " ${BLUE} Express-generator has been installed! \033[0m"
fi
echo "Checking for Angular"
sleep 2
if [ -x "$(command -v ng)" ];
then
echo -e " ${RED} You have Angular installed! \033[0m"
else
echo -e " ${BLUE} Installing Angular"
sleep 2
sudo npm install -g @angular/cli
echo -e " ${BLUE} Angular has been installed! \033[0m"
fi
echo "Checking for MongoDB"
sleep 2
if [ -x "$(command -v mongo)" ];
then
echo -e " ${RED} You have MongoDB database Installed! \033[0m"
else
install_mongodb
fi
echo Done
echo -e " ${BLUE} Tweet me @odirionyeo \033[0m"