Kleine Pimmel Scripts


Jellyfin

#!/bin/bash
##
echo "Running Jellyfin in 10 sec... Ctrl + C to abort!"
sleep 10
mkdir -p /opt/jellyfin/{config,cache}
docker pull jellyfin/jellyfin:latest
docker stop jellyfin
docker rm jellyfin
set -e
docker run -d --restart=unless-stopped \
-v /opt/jellyfin/config:/config \
-v /opt/jellyfin/cache:/cache \
-v /mymedia:/media:ro \
-p 127.0.0.1:8096:8096 \
--name jellyfin \
jellyfin/jellyfin:latest
echo "Cooldown..."
sleep 5
docker image prune -f
echo "Done."