Skip to content

Commit 7c9f0a3

Browse files
Wrap libjemalloc symlink in conditional
1 parent 70b6212 commit 7c9f0a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

debian/jellyfin-server.postinst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ case "$1" in
5151
done
5252

5353
# Install libjemalloc.so symlink into /usr/lib/jellyfin
54-
ln -sf $( ldconfig -p | grep libjemalloc | awk '{print $NF}' | head -n1 ) /usr/lib/jellyfin/libjemalloc.so
54+
LIBJEMALLOC_PATH="$( ldconfig -p | grep libjemalloc | awk '{print $NF}' | head -n1 )"
55+
if [[ -n ${LIBJEMALLOC_PATH} && -f ${LIBJEMALLOC_PATH} ]]; then
56+
ln -sf ${LIBJEMALLOC_PATH} /usr/lib/jellyfin/libjemalloc.so
57+
fi
5558

5659
# Install jellyfin symlink into /usr/bin
5760
ln -sf /usr/lib/jellyfin/bin/jellyfin /usr/bin/jellyfin

0 commit comments

Comments
 (0)