-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
42 lines (33 loc) · 1000 Bytes
/
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
#!/bin/bash
function is_installed() {
if dpkg -l $1 &>/dev/null; then
echo -e "\033[32m\n$1 Yes it is installed.\033[0m"
else
echo -e "\033[32m\nInstallation $1..."
apt install $1 -y
fi
}
function install() {
clear
echo -e "\033[31mUpdating packages..."
apt update
is_installed "python"
is_installed "python3"
is_installed "php"
which pip3 > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
echo -e "\033[32m\npip3 is now installed."
else
echo -e "\033[32m\nInstalling pip3..."
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
rm -rf get-pip.py
fi
echo -e "\033[32m\nInstalling requirements...\n"
pip3 install -r requirements.txt
echo -e "\033[32m\nInstall cloudflared..."
python3 install_cfd.py
echo -e "\n\033[32mComplete installation.\033[0m"
echo -e "\033[34m\n[~] Using the command: python3 doxxerX.py.py to remove the shell."
}
install