forked from plexguide/Apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jackett.app
52 lines (43 loc) · 1.25 KB
/
jackett.app
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
#!/bin/bash
# ================================ DEFAULT VALUES ================================ #
default_variables() {
port_number=9117
time_zone=America/New_York
appdata_path=/pg/appdata/jackett
pathto_blackhole=/pg/downloads/
auto_update=true
version_tag=latest
expose=
}
# ================================ CONTAINER DEPLOYMENT ================================ #
deploy_container() {
create_docker_compose() {
cat << EOF > /pg/ymals/${app_name}/docker-compose.yml
services:
${app_name}:
image: lscr.io/linuxserver/jackett:${version_tag}
container_name: ${app_name}
environment:
- PUID=1000
- PGID=1000
- TZ=${time_zone}
- AUTO_UPDATE=${auto_update}
- RUN_OPTS=\`#optional\`
volumes:
- ${appdata_path}:/config
- ${pathto_blackhole}:/downloads
ports:
- ${expose}${port_number}:9117
restart: unless-stopped
networks:
- plexguide
networks:
plexguide:
external: true
EOF
}
}
# ================================ MENU GENERATION ================================ #
# NOTE: List menu options in order of appears and place a this for naming #### Item Title
# ================================ EXTRA FUNCTIONS ================================ #
# NOTE: Extra Functions for Script Organization