From e38d7e9d85017d33a8d5dd8fb1d2394ecbb4ab23 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 4 May 2023 14:33:09 +0200 Subject: [PATCH] Add symlink for transcodes folder https://github.com/alexbelgium/hassio-addons/issues/777 --- jellyfin/rootfs/etc/cont-init.d/90-data_location.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jellyfin/rootfs/etc/cont-init.d/90-data_location.sh b/jellyfin/rootfs/etc/cont-init.d/90-data_location.sh index a114f954a..d86ea9d39 100755 --- a/jellyfin/rootfs/etc/cont-init.d/90-data_location.sh +++ b/jellyfin/rootfs/etc/cont-init.d/90-data_location.sh @@ -24,6 +24,11 @@ mkdir -p "$LOCATION" "$LOCATION"/data "$LOCATION"/cache "$LOCATION"/log "$LOCATI cp -rn /usr/share/jellyfin/web/* "$LOCATION"/web/ sed -i "s|/usr/share/jellyfin|$LOCATION|g" /etc/nginx/servers/ingress.conf +# Custom transcode location +rm -r "$LOCATION"/data/transcodes +mkdir -p /transcodes +ln -s /transcodes "$LOCATION"/data/transcodes + # Permissions bashio::log.info "Setting ownership to $PUID:$PGID" chown -R "$PUID":"$PGID" "$LOCATION"