-
Notifications
You must be signed in to change notification settings - Fork 9
/
android.sh
21 lines (21 loc) · 915 Bytes
/
android.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
echo -e "\e[48;5;10m\e[38;5;0m[i]\e[0m Installing/Updating NodeJS, npm and ffmpeg"
yes Y | apt-get update>ilog.txt 2>&1
yes Y | apt-get install npm>>ilog.txt 2>&1
yes Y | apt-get install nodejs>>ilog.txt 2>&1
yes Y | apt-get install ffmpeg>>ilog.txt 2>&1
yes Y | pkg update>>ilog.txt 2>&1
yes Y | pkg install npm>>ilog.txt 2>&1
yes Y | pkg install nodejs>>ilog.txt 2>&1
yes Y | pkg install ffmpeg>>ilog.txt 2>&1
echo -e "\e[48;5;10m\e[38;5;0m[i]\e[0m Installing/Updating libraries"
npm i>>ilog.txt 2>&1
npm i -g n>>ilog.txt 2>&1
n latest>>ilog.txt 2>&1
npm install -g npm>>ilog.txt 2>&1
echo -e "\e[48;5;10m\e[38;5;0m[i]\e[0m Searching for updates"
git config user.email "y@x.z"
git config user.name "XYZ"
git pull https://github.com/tudbut/bottyclient.git>>ilog.txt 2>&1
echo -e "\e[48;5;10m\e[38;5;0m[i]\e[0m All libraries should be installed now"
echo -e "\e[48;5;10m\e[38;5;0m[i]\e[0m Starting!"
node server.js