This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·65 lines (50 loc) · 1.48 KB
/
install.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
NAME_PROJECT="jaylenw/IonicTodoApp"
clear
echo " ------------------ $NAME_PROJECT ------------------ "
echo "Fetches the list of available updates ..."
sudo apt update
echo "Installing git ..."
if [ "`dpkg -s git | grep "installed"`" = "" ]; then
sudo apt install git -y
echo "git installed!"
else
echo "git is already installed!";
fi
echo "Installing Node.js ..."
if [ "`dpkg -s nodejs | grep "installed"`" = "" ]; then
sudo apt install nodejs -y
echo "Configuring Node.js ..."
sudo ln -s /usr/bin/nodejs /usr/bin/node
echo "Node.js installed!"
else
echo "Node.js is already installed!";
fi
echo "Installing npm ..."
if [ "`dpkg -s npm | grep "installed"`" = "" ]; then
sudo apt install npm -y
echo "npm installed!"
else
echo "npm is already installed!";
fi
echo "Installing npm packages ...."
sudo npm install -g npm
echo "Installing bower packages ...."
sudo npm install -g bower
echo "Installing [email protected] ...."
sudo npm install -g [email protected]
echo "Installing openjdk-8-jdk ..."
sudo apt install openjdk-8-jdk -y
echo "Configuring architecture i386 ..."
sudo dpkg --add-architecture i386
echo "Installing libraries ..."
sudo apt install libdb1-compat tzdata initscripts -y
sudo apt install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 -y
sudo apt install zlib1g-dev libncurses5- -y
sudo apt install zlib1g:i386 -y
echo "Installing npm dependencies ...."
npm install
echo "Installing bower dependencies ...."
bower install
echo "Finish!"
exit 0;