Add jdownloader to the jellyfin stack
This commit is contained in:
parent
7fe1437b32
commit
77143ebe35
2 changed files with 15 additions and 0 deletions
scripts/Common/Software/docker/services/jellyfin
|
@ -130,6 +130,17 @@ services:
|
|||
- /dev/net/tun
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
jdownloader:
|
||||
image: jlesage/jdownloader-2
|
||||
restart: unless-stopped
|
||||
profiles:
|
||||
- jd
|
||||
environment:
|
||||
USER_ID: 1337
|
||||
GROUP_ID: 1337
|
||||
volumes:
|
||||
- ./data/downloads/jdownloader:/output
|
||||
- ./data/config/jdownloader:/config
|
||||
# transmission:
|
||||
# build:
|
||||
# dockerfile: ./transmission.Dockerfile
|
||||
|
|
|
@ -65,6 +65,10 @@ begin
|
|||
sudo tee "$config" >/dev/null
|
||||
end
|
||||
|
||||
set -l envKey "$(getServiceKey "jdownloader").environment"
|
||||
and sudo yq -i "$envKey.USER_ID = $uid" "$config"
|
||||
and sudo yq -i "$envKey.GROUP_ID = $gid" "$config"
|
||||
|
||||
cp "$overrides" "$file"
|
||||
URL="https://$(getServiceDomain "$domain" "")/" yq "$(getServiceKey "$service").environment.JELLYFIN_PublishedServerUrl = env(URL)" "$file" |
|
||||
sudo tee "$overrides" >/dev/null
|
||||
|
|
Loading…
Reference in a new issue