Skip to content

Commit 894d4b7

Browse files
committed
use PLEX_MEDIA_SERVER_INFO_DEVICE=docker to identify to pms using a docker image, fix quotes on variable, shellcheck
1 parent bac8b14 commit 894d4b7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM lsiobase/xenial
22
MAINTAINER Stian Larsen, sparklyballs
33

4-
# package version
5-
ENV PLEX_INSTALL="https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu"
64

75
# global environment settings
86
ENV DEBIAN_FRONTEND="noninteractive" \
97
PLEX_DOWNLOAD="https://downloads.plex.tv/plex-media-server" \
8+
PLEX_INSTALL="https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu" \
109
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/config/Library/Application Support" \
1110
PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" \
11+
PLEX_MEDIA_SERVER_INFO_DEVICE=docker \
1212
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6"
1313

1414
# install packages

root/etc/cont-init.d/40-chown-files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
if [ ! -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" ]; then
55
mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"
66
chown abc:abc "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"
7-
elif [ ! "$(stat -c %u ${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR})" = "$PUID" ]; then
7+
elif [ ! "$(stat -c %u "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}")" = "$PUID" ]; then
88
echo "Change in ownership detected, please be patient while we chown existing files"
99
echo "This could take some time"
1010
chown abc:abc -R \

0 commit comments

Comments
 (0)