Files
docker-jellyfin/root/etc/s6-overlay/s6-rc.d/svc-jellyfin/run
2024-10-06 16:21:06 -04:00

20 lines
530 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
if [[ -z "${FFMPEG_PATH}" ]] || [[ ! -f "${FFMPEG_PATH}" ]]; then
FFMPEG_PATH=/usr/lib/jellyfin-ffmpeg/ffmpeg
fi
export \
HOME="/config" \
JELLYFIN_DATA_DIR="/config/data" \
JELLYFIN_CONFIG_DIR="/config" \
JELLYFIN_LOG_DIR="/config/log" \
JELLYFIN_CACHE_DIR="/config/cache" \
JELLYFIN_WEB_DIR="/usr/share/jellyfin/web"
exec \
s6-notifyoncheck -d -n 300 -w 1000 \
s6-setuidgid abc /usr/bin/jellyfin \
--ffmpeg="${FFMPEG_PATH}"