File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/config/Library/Application Support"
1010PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" \
1111PLEX_MEDIA_SERVER_INFO_DEVICE=docker \
1212PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6" \
13+ PLEX_MEDIA_SERVER_USER=abc \
1314LD_LIBRARY_PATH="/usr/lib/plexmediaserver:$LD_LIBRARY_PATH"
1415
1516# install packages
Original file line number Diff line number Diff line change @@ -14,4 +14,3 @@ if [ ! "$(stat -c %u /config/Library)" = "$PUID" ]; then
1414 chown abc:abc -R \
1515 /config/Library
1616fi
17-
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
22
3- # copy config on first run, regardless of update status
4- [[ ! -e /etc/default/plexmediaserver ]] && \
5- cp /defaults/plexmediaserver /etc/default/plexmediaserver
6-
73# test if plex is installed and try re-pulling latest if not
84if (dpkg --get-selections plexmediaserver | grep -wq "install"); then
95:
117113dpkg -i --force-confold /tmp/plexmediaserver_"${REMOTE_VERSION}"_amd64.deb
118114rm -f /tmp/plexmediaserver_*.deb
119115fi
120-
121- # recopy config file
122- cp /defaults/plexmediaserver /etc/default/plexmediaserver
Original file line number Diff line number Diff line change 66
77echo "Starting Avahi daemon"
88exec avahi-daemon --no-chroot
9-
Original file line number Diff line number Diff line change 22
33echo "Starting dbus-daemon"
44exec dbus-daemon --system --nofork
5-
Original file line number Diff line number Diff line change @@ -4,5 +4,3 @@ echo "Starting Plex Media Server."
44exec \
55 s6-setuidgid abc /bin/bash -c \
66 '/usr/lib/plexmediaserver/Plex\ Media\ Server'
7-
8-
You can’t perform that action at this time.
0 commit comments