-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
80 lines (79 loc) · 1.76 KB
/
install
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Tool Name :- Tool-X
# Date :- 1/11/2017
if [ -e /usr/lib/sudo ];then
if [ -e /usr/bin/apt-get ];then
if [ ! -e /usr/bin/python3 ];then
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install python -y
sudo apt-get install python3 -y
fi
fi
else
if [ -d /usr/bin ];then
if [ -e /usr/bin/apt-get ];then
if [ ! -e /usr/bin/python3 ];then
apt-get update
apt -get upgrade -y
apt-get install python -y
apt-get install python3 -y
fi
fi
fi
fi
if [ -d /data/data/com.termux/files/usr/bin ]; then
if [ ! -e /data/data/com.termux/files/usr/bin/python3 ];then
pkg update
pkg upgrade -y
pkg install python -y
pkg install python3 -y
fi
fi
if [ -e /usr/lib/sudo ];then
if [ -e /usr/bin/yum ];then
if [ ! -e /usr/bin/python3 ];then
sudo yum update
sudo yum upgrade -y
sudo yum install python -y
sudo yum install python3 -y
fi
fi
else
if [ -d /usr/bin ];then
if [ -e /usr/bin/yum ];then
if [ ! -e /usr/bin/python3 ];then
yum update
yum upgrade -y
yum install python -y
yum install python3 -y
fi
fi
fi
fi
if [ -e /usr/local/bin/brew ];then
if [ ! -e /usr/local/bin/python3 ];then
brew install python -y
brew install python3 -y
fi
fi
if [ -e /usr/local/bin/brew ];then
if [ ! -e /usr/local/bin/python ];then
brew install python -y
brew install python3 -y
fi
fi
if [ -e /usr/bin/apk ];then
if [ ! -e /usr/bin/python ];then
apk install python -y
apk install python3 -y
fi
fi
if [ -e /usr/bin/apk ];then
if [ ! -e /usr/bin/python3 ];then
apk install python -y
apk install python3 -y
fi
fi
pip install -r requirements.txt
python3 install.py
exit