File tree Expand file tree Collapse file tree 2 files changed +27
-12
lines changed Expand file tree Collapse file tree 2 files changed +27
-12
lines changed Original file line number Diff line number Diff line change @@ -70,20 +70,17 @@ jobs:
70
70
if : github.event_name != 'schedule' || (steps.version-check.outputs.SUBMITTED_BUILD_ID != steps.version-check.outputs.CHECKED_BUILD_ID && github.event_name == 'schedule')
71
71
run : |
72
72
sudo apt-get update -y
73
- sudo apt-get install -y debootstrap squashfs-tools jq wget curl unzip
73
+ sudo apt-get install -y debootstrap squashfs-tools jq wget curl unzip python3 python3-pip
74
74
sudo snap install distrobuilder --classic
75
75
mkdir -p /tmp/output/${{inputs.app_name}}
76
76
mkdir -p /tmp/cache/${{inputs.app_name}}
77
77
wget $(curl -s https://api.github.com/repos/Orange-OpenSource/hurl/releases/latest |jq -r '.assets[] | select(.name|test("amd64.deb")) | .browser_download_url') -O /tmp/hurl_amd64.deb
78
78
sudo apt-get install -y /tmp/hurl_amd64.deb
79
79
sudo -v ; curl https://rclone.org/install.sh | sudo bash
80
+ pip install jinja2-cli
80
81
81
- - uses : actions/setup-python@v5
82
- with :
83
- python-version : ' 3.12'
84
- cache : ' pip' # caching pip dependencies
82
+ - name : Build Distrobuilder template
85
83
- run : |
86
- pip install jinja2-cli
87
84
jinja2 ${{github.workspace}}/${{inputs.config_path}} -D APP_NAME="${{ inputs.app_name }}" -D EXPOSED_PORTS="${{ inputs.app_ports }}" > ${{github.workspace}}/lxc-template.yml
88
85
89
86
- name : Build Image
Original file line number Diff line number Diff line change 23
23
User={{ arr }}
24
24
Group=media
25
25
Type=simple
26
-
27
26
ExecStart=/opt/{{ arr | capitalize }}/{{ arr | capitalize }} -nobrowser -data=/var/lib/{{ arr }}/
28
27
TimeoutStopSec=20
29
28
KillMode=process
42
41
User=flaresolverr
43
42
Group=media
44
43
Type=simple
45
-
46
44
ExecStart=/opt/FlareSolverr/venv/bin/python -u /opt/FlareSolverr/src/flaresolverr.py
47
45
TimeoutStopSec=20
48
46
KillMode=process
61
59
User=bazarr
62
60
Group=media
63
61
Type=simple
64
-
65
62
ExecStart=/opt/bazarr/venv/bin/python -u /opt/bazarr/bazarr.py
66
63
TimeoutStopSec=20
67
64
KillMode=process
80
77
User=qbittorrent
81
78
Group=media
82
79
Type=simple
83
-
84
80
ExecStart=/usr/bin/qbittorrent-nox --daemon --first-and-last --skip-dialog=true
85
81
TimeoutStopSec=20
86
82
KillMode=process
87
83
Restart=on-failure
88
84
[Install]
89
85
WantedBy=multi-user.target
86
+
87
+ - path: /etc/systemd/system/sabnzbdplus.service
88
+ generator: dump
89
+ mode: 0440
90
+ content: |-
91
+ [Unit]
92
+ Description=SABnzbdplus Daemon
93
+ After=syslog.target network.target
94
+ [Service]
95
+ User=sabnzbdplus
96
+ Group=media
97
+ Type=simple
98
+ ExecStart=/usr/bin/sabnzbdplus -s 0.0.0.0:8081
99
+ TimeoutStopSec=20
100
+ KillMode=process
101
+ Restart=on-failure
102
+ [Install]
103
+ WantedBy=multi-user.target
90
104
{% endblock dumps %}
91
105
{# Set packages to be installed #}
92
106
{% block packages %}
103
117
- unrar-free
104
118
- unzip
105
119
- qbittorrent-nox
120
+ - sabnzbdplus
106
121
action: install
107
122
{% endblock packages %}
108
123
{# Set required repositories for packages to be installed #}
175
190
systemctl enable bazarr.service
176
191
rm -rf /opt/*.zip
177
192
178
- mkdir /opt/qbittorrent
179
- useradd --home-dir /opt/qbittorrent qbittorrent
193
+ useradd -m --home-dir /opt/qbittorrent qbittorrent
180
194
usermod -aG media qbittorrent
181
195
systemctl enable qbittorrent.service
196
+
197
+ useradd -m --home-dir /opt/sabnzbdplus sabnzbdplus
198
+ usermod -aG media sabnzbdplus
199
+ systemctl enable sabnzbdplus.service
182
200
{% endblock post_files %}
183
201
{# *** End of configuration block *** #}
You can’t perform that action at this time.
0 commit comments