forked from thewhiteh4t/seeker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·53 lines (44 loc) · 1.84 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
#!/usr/bin/env bash
ILOG=$PWD/logs/install.log
debian_install() {
echo -e '=====================\nINSTALLING FOR DEBIAN\n=====================\n' > $ILOG
echo -ne 'Python3\r'
sudo apt -y install python3 python3-pip &>> $ILOG && echo 'Python3 - Installed' || 'Python3 - Failed!'
echo -e '\n--------------------\n' >> $ILOG
echo -ne 'PHP\r'
sudo apt -y install php &>> $ILOG && echo 'PHP - Installed' || echo 'PHP - Failed!'
echo -e '\n--------------------\n' >> $ILOG
}
termux_install() {
echo -e '=====================\nINSTALLING FOR TERMUX\n=====================\n' > $ILOG
echo -ne 'Python3\r'
apt -y install python &>> $ILOG && echo 'Python3 - Installed' || 'Python3 - Failed!'
echo -e '\n--------------------\n' >> $ILOG
echo -ne 'PHP\r'
apt -y install php &>> $ILOG && echo 'PHP - Installed' || echo 'PHP - Failed!'
echo -e '\n--------------------\n' >> $ILOG
}
arch_install() {
echo -e '=========================\nINSTALLING FOR ARCH LINUX\n=========================\n' > $ILOG
echo -ne 'Python3\r'
yes | sudo pacman -S python3 python-pip --needed &>> $ILOG && echo 'Python3 - Installed' || 'Python3 - Failed!'
echo -e '\n--------------------\n' >> $ILOG
echo -ne 'PHP\r'
yes | sudo pacman -S php --needed &>> $ILOG && echo 'PHP - Installed' || echo 'PHP - Failed!'
echo -e '\n--------------------\n' >> $ILOG
}
echo -e '[!] Installing Dependencies...\n'
if [ -f '/etc/arch-release' ]; then
arch_install
else
if [ $OSTYPE == 'linux-android' ]; then
termux_install
else
debian_install
fi
fi
echo -ne 'Requests\r'
pip3 install requests &>> $ILOG && echo 'Requests - Installed' || echo 'Requests - Failed!'
echo -ne 'Packaging\r'
pip3 install packaging &>> $ILOG && echo 'Packaging - Installed' || echo 'Packaging - Failed!'
echo -e '\nLog Saved :' $ILOG