-
Notifications
You must be signed in to change notification settings - Fork 6
/
ombi
57 lines (50 loc) · 1.73 KB
/
ombi
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
#!/bin/bash
############# https://github.com/plexguide/PlexGuide.com/graphs/contributors ###
ombi () {
container_reset
# VARIABLES ####################################################################
pgrole="ombi"
port_inside01="3579"
port_outside01="3579"
traefik_extport="3579"
container_path /pg/unity /unity
container_path /pg/data/$pgrole /config
container_path /etc/localtime /etc/localtime:ro
container_permissions PUID 1000
container_permissions PGID 1000
# IMAGES EXPORT - 1ST IS DEFAULT ###############################################
cat <<- EOF > "/pg/images/$pgrole.images"
linuxserver/ombi:latest
linuxserver/ombi:development
EOF
# YML EXPORT ###################################################################
container_core
cat <<- EOF > "/pg/apps/$pgrole.yml"
$container_header
### ALIGN WITH THE A ################################## START - EXTRAS #########
- name: Check JSON exists
stat:
path: '/pg/data/$pgrole/appsettings.json'
register: jsonfile
- name: 'Download $pgrole appsettings.json config file'
get_url:
url: https://raw.githubusercontent.com/tidusjar/Ombi/master/src/Ombi/appsettings.json
dest: /pg/data/$pgrole/appsettings.json
owner: '1000'
group: '1000'
force: no
ignore_errors: True
when: jsonfile.stat.exists == False
####### ALIGN WITH THE A ############################## CORE ###################
$container_start
published_ports:
- '${portcheck_add}${port_outside01}:${port_inside01}'
env:
$container_permissions
labels:
$container_traefik
$container_oddball
$container_ending
### ALIGN WITH THE A ################################## END - EXTRAS ###########
EOF
}