-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
41 lines (40 loc) · 1.09 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
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "[!] Please run as root"
exit
fi
CHECKPYTHON=$(which python3)
echo "[!] Checking if python3 is installed..."
if [ CHECKPYTHON = "" ]
then
echo "[!] Python3 is NOT installed! Do you wish to install it now? (y/n)"
read $INSTALLPYTHON
if [ INSTALLPYTHON = "y" ]
then
echo "[+] Installing python3..."
apt install python3 python3-pip
fi
else
echo "[+] Python3 is installed!"
fi
echo "[+] Installing python3 dependencies..."
pip3 install -r requirements.txt
echo "[+] Done!"
echo "[+] Making script executable..."
chmod +x ./vpnbook-tweet-checker.py
echo "[?] Would you like to install program in your /usr/bin? (y/n)"
read $INSTALLUSRBIN
if [ INSTALLUSRBIN = "y" ]
then
echo "[+] Copying to /usr/bin..."
cp ./vpnbook-tweet-checker.py /usr/bin
echo "[+] Done!"
else
echo "[=] Okay, VPNBook-Tweet-checker is ready to run!"
fi
if [ INSTALLUSRBIN = "y" ]
then
echo "[+] VPNBook-Tweet-Checker is ready to run!"
echo "[+] You can run the script by typing 'vpnbook-tweet-checker' in your terminal."
exit
fi