mirror of
https://github.com/linuxserver/docker-jellyfin.git
synced 2025-10-26 18:53:39 +09:00
Rebase master to Jammy, migrate to s6v3
This commit is contained in:
2
root/etc/cont-init.d/30-config → root/etc/s6-overlay/s6-rc.d/init-jellyfin-config/run
Normal file → Executable file
2
root/etc/cont-init.d/30-config → root/etc/s6-overlay/s6-rc.d/init-jellyfin-config/run
Normal file → Executable file
@@ -7,7 +7,7 @@ mkdir -p \
|
||||
/transcode
|
||||
|
||||
# permissions
|
||||
chown abc:abc \
|
||||
lsiown abc:abc \
|
||||
/config \
|
||||
/config/* \
|
||||
/config/data/transcodes \
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-jellyfin-config/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-jellyfin-config/type
Normal file
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-jellyfin-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-jellyfin-config/up
Normal file
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-jellyfin-config/run
|
||||
0
root/etc/cont-init.d/40-gid-video → root/etc/s6-overlay/s6-rc.d/init-jellyfin-video/run
Normal file → Executable file
0
root/etc/cont-init.d/40-gid-video → root/etc/s6-overlay/s6-rc.d/init-jellyfin-video/run
Normal file → Executable file
1
root/etc/s6-overlay/s6-rc.d/init-jellyfin-video/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-jellyfin-video/type
Normal file
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-jellyfin-video/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-jellyfin-video/up
Normal file
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-jellyfin-video/run
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-jellyfin/notification-fd
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-jellyfin/notification-fd
Normal file
@@ -0,0 +1 @@
|
||||
3
|
||||
13
root/etc/s6-overlay/s6-rc.d/svc-jellyfin/run
Executable file
13
root/etc/s6-overlay/s6-rc.d/svc-jellyfin/run
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
export \
|
||||
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 -c "nc -z localhost 8096" \
|
||||
s6-setuidgid abc /usr/bin/jellyfin \
|
||||
--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-jellyfin/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-jellyfin/type
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
export \
|
||||
JELLYFIN_DATA_DIR="/config/data" \
|
||||
JELLYFIN_CONFIG_DIR="/config" \
|
||||
JELLYFIN_LOG_DIR="/config/log" \
|
||||
JELLYFIN_CACHE_DIR="/config/cache"
|
||||
|
||||
if [ -n "${UMASK_SET}" ] && [ -z "${UMASK}" ]; then
|
||||
echo -e "You are using a legacy method of defining umask\nplease update your environment variable from UMASK_SET to UMASK\nto keep the functionality after July 2021"
|
||||
umask ${UMASK_SET}
|
||||
fi
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc /usr/bin/jellyfin \
|
||||
--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg \
|
||||
--webdir=/usr/share/jellyfin/web
|
||||
Reference in New Issue
Block a user