-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
52 lines (39 loc) · 1.11 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
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
echo "Please enter your Deaddrop Type!"
echo "1. MarketDrop "
echo "2. CryptoDrop"
read num
mkdir /opt/deadrop
if [[ "$num" -eq 1 ]]; then
cp -r marketdrop /opt/deadrop
elif [[ "$num" -eq 2 ]]; then
cp -r cryptodrop /opt/deadrop
else
echo " Please choose correct option and retry"
exit
fi
apt install python3 nginx python3-pip -y
snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot
wget https://gist.githubusercontent.com/themayankjha/a1ce7e0d9358ea39ea912a9cb9f3a400/raw/434c03aec373b8ad625fdc5883b77a8e8d1ffb99/auth.py
chmod +x auth.py
mkdir /etc/letsencrypt
mv auth.py /etc/letsencrypt/
pip3 install flask gunicorn twilio
echo "Input TWILIO_ACCOUNT_SID"
read TWILIO_ACCOUNT_SID
echo "Input TWILIO_AUTH_TOKEN"
read TWILIO_AUTH_TOKEN
export TWILIO_ACCOUNT_SID=$TWILIO_ACCOUNT_SID
export TWILIO_AUTH_TOKEN=$TWILIO_AUTH_TOKEN
if [[ "$num" -eq 1 ]]; then
cd /opt/deadrop/marketdrop
gunicorn -b :8081 app:app&
elif [[ "$num" -eq 2 ]]; then
cd /opt/deadrop/cryptodrop
gunicorn -b :8081 app:app&
fi