diff --git a/Dockerfile b/Dockerfile index ae57867..d74ef3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,8 @@ PLEX_INSTALL="https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x8 PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/config/Library/Application Support" \ PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" \ PLEX_MEDIA_SERVER_INFO_DEVICE=docker \ -PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6" +PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6" \ +LD_LIBRARY_PATH="/usr/lib/plexmediaserver:$LD_LIBRARY_PATH" # install packages RUN \ diff --git a/root/etc/services.d/plex/run b/root/etc/services.d/plex/run index b3556ec..cd91d22 100644 --- a/root/etc/services.d/plex/run +++ b/root/etc/services.d/plex/run @@ -1,6 +1,8 @@ #!/usr/bin/with-contenv bash echo "Starting Plex Media Server." -exec s6-setuidgid abc /bin/sh -c 'LD_LIBRARY_PATH=/usr/lib/plexmediaserver /usr/lib/plexmediaserver/Plex\ Media\ Server' +exec \ + s6-setuidgid abc /bin/bash -c \ + '/usr/lib/plexmediaserver/Plex\ Media\ Server'