pull/87/head
sparklyballs 8 years ago
parent 3740cdb35b
commit 55e1964bf0

@ -10,6 +10,7 @@ PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/config/Library/Application Support"
PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" \ PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" \
PLEX_MEDIA_SERVER_INFO_DEVICE=docker \ PLEX_MEDIA_SERVER_INFO_DEVICE=docker \
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6" \ PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6" \
PLEX_MEDIA_SERVER_USER=abc \
LD_LIBRARY_PATH="/usr/lib/plexmediaserver:$LD_LIBRARY_PATH" LD_LIBRARY_PATH="/usr/lib/plexmediaserver:$LD_LIBRARY_PATH"
# install packages # install packages

@ -14,4 +14,3 @@ if [ ! "$(stat -c %u /config/Library)" = "$PUID" ]; then
chown abc:abc -R \ chown abc:abc -R \
/config/Library /config/Library
fi fi

@ -1,9 +1,5 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
# copy config on first run, regardless of update status
[[ ! -e /etc/default/plexmediaserver ]] && \
cp /defaults/plexmediaserver /etc/default/plexmediaserver
# test if plex is installed and try re-pulling latest if not # test if plex is installed and try re-pulling latest if not
if (dpkg --get-selections plexmediaserver | grep -wq "install"); then if (dpkg --get-selections plexmediaserver | grep -wq "install"); then
: :
@ -117,6 +113,3 @@ else
dpkg -i --force-confold /tmp/plexmediaserver_"${REMOTE_VERSION}"_amd64.deb dpkg -i --force-confold /tmp/plexmediaserver_"${REMOTE_VERSION}"_amd64.deb
rm -f /tmp/plexmediaserver_*.deb rm -f /tmp/plexmediaserver_*.deb
fi fi
# recopy config file
cp /defaults/plexmediaserver /etc/default/plexmediaserver

@ -6,4 +6,3 @@ done
echo "Starting Avahi daemon" echo "Starting Avahi daemon"
exec avahi-daemon --no-chroot exec avahi-daemon --no-chroot

@ -2,4 +2,3 @@
echo "Starting dbus-daemon" echo "Starting dbus-daemon"
exec dbus-daemon --system --nofork exec dbus-daemon --system --nofork

@ -4,5 +4,3 @@ echo "Starting Plex Media Server."
exec \ exec \
s6-setuidgid abc /bin/bash -c \ s6-setuidgid abc /bin/bash -c \
'/usr/lib/plexmediaserver/Plex\ Media\ Server' '/usr/lib/plexmediaserver/Plex\ Media\ Server'

Loading…
Cancel
Save