add jellyin

master
Paul Walko 2020-12-27 03:14:38 -05:00
parent 7e770ce8a0
commit 5af550f4d7
1 changed files with 38 additions and 0 deletions

38
fogcutter/podman/jellyfin.sh Executable file
View File

@ -0,0 +1,38 @@
#!/bin/bash
set -e
up () {
loginctl enable-linger paul
podman network create pew-net || true
# Exposed on port 8096 in pew-net
# TODO intel hw acceleration
podman create \
--name jellyfin \
--env PUID=1000 \
--env PGID=1000 \
--env TZ=US/Eastern \
--volume /bigdata/k8s-config/jellyfin/config:/config:rw \
--volume /bigdata/media/movies:/media/movies:ro \
--volume /bigdata/media/music:/media/music:ro \
--network pew-net \
ghcr.io/linuxserver/jellyfin:10.6.4-1-ls89
podman generate systemd jellyfin --restart-policy=always --name > ~/.config/systemd/user/jellyfin.service
systemctl --user daemon-reload
systemctl start --user jellyfin || systemctl restart --user jellyfin
systemctl enable --user jellyfin
}
down () {
systemctl stop --user jellyfin || true
systemctl disable --user jellyfin || true
podman rm jellyfin || true
}
logs () {
podman logs --follow jellyfin
}
$@