Repository Public
1#!/bin/bash2# Runs the Jellyfin server in the foreground (PM2 keeps it alive).3set -euo pipefail4OPT="$HOME/opt/jellyfin/current/jellyfin"; DATA="$HOME/data/jellyfin"5FFMPEG="$(command -v ffmpeg || echo /opt/homebrew/bin/ffmpeg)"6exec "$OPT/jellyfin" --datadir "$DATA/data" --cachedir "$DATA/cache" --configdir "$DATA/config" --logdir "$DATA/log" --ffmpeg "$FFMPEG"7