From 71d451ebb9addfe9a8569283d84b592b03487bdc Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 23 Oct 2025 18:01:02 -0400 Subject: [PATCH] Improve layout and add cache bust to ldconfig --- debian/jellyfin-server.postinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/jellyfin-server.postinst b/debian/jellyfin-server.postinst index e5f50eb..9f18a8f 100644 --- a/debian/jellyfin-server.postinst +++ b/debian/jellyfin-server.postinst @@ -50,12 +50,14 @@ case "$1" in fi done - # Install libjemalloc.so symlink into /usr/lib/jellyfin + # Refresh ldconfig cache and get libjemalloc.so path + ldconfig &>/dev/null LIBJEMALLOC_PATH="$( ldconfig -p | grep libjemalloc | awk '{print $NF}' | head -n1 )" if [[ -z ${LIBJEMALLOC_PATH} ]]; then # Try to find the path with `find` instead of `ldconfig`; hackier, but a good fallback LIBJEMALLOC_PATH="$( find /usr/lib -type f -name "libjemalloc.so*" | head -n1 )" fi + # Install libjemalloc.so symlink into /usr/lib/jellyfin if [[ -n ${LIBJEMALLOC_PATH} && -f ${LIBJEMALLOC_PATH} ]]; then ln -sf ${LIBJEMALLOC_PATH} /usr/lib/jellyfin/libjemalloc.so else