forked from aymene69/stremio-jackett
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
60 lines (47 loc) · 2.25 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
54
55
56
57
58
59
60
#!/bin/bash
sudo apt-get update -y
sudo apt-get install -y ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update -y
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
clear
echo "Please enter your email: "
read userMail
echo "Please enter your domain name: "
read domainName
sudo mkdir /etc/traefik
sudo mkdir /etc/traefik/certs
sudo curl -fsSL https://raw.githubusercontent.com/aymene69/stremio-jackett/main/traefik/traefik.yml -o /etc/traefik/traefik.yml
sudo sed -i "s/youremail@domain.com/$userMail/g" /etc/traefik/traefik.yml
sudo mkdir traefik jackett addon
sudo curl -fsSL https://raw.githubusercontent.com/aymene69/stremio-jackett/main/traefik/docker-compose.yml -o ./traefik/docker-compose.yml
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT
sudo netfilter-persistent save
cd traefik
sudo docker compose up -d
cd ../jackett
sudo mkdir data blackhole
sudo curl -fsSL https://raw.githubusercontent.com/aymene69/stremio-jackett/main/jackett/docker-compose.yml -o ./docker-compose.yml
sudo sed -i "s/YOURADDON.COM/$domainName/g" ./docker-compose.yml
sudo docker compose up -d
sleep 5
sudo docker compose down
sudo sed -i 's/"BasePathOverride": null/"BasePathOverride": "\/jackett"/g' ./data/Jackett/ServerConfig.json
sudo sed -i 's/"FlareSolverrUrl": null/"FlareSolverrUrl": "https:\/\/'"$domainName"'\/"/g' ./data/Jackett/ServerConfig.json
sudo docker compose up -d
cd ../addon
mkdir data
sudo curl -fsSL https://raw.githubusercontent.com/aymene69/stremio-jackett/main/docker-compose-traefik.yml -o ./docker-compose.yml
sudo sed -i "s/YOURADDON.COM/$domainName/g" ./docker-compose.yml
sudo docker compose up -d
cd ../traefik
sudo docker compose down
sudo docker compose up -d
clear
echo "Your addon is accessible at https://$domainName/addon"
echo "Jackett is accessible at https://$domainName/jackett"