Fix UID/GID envvar names in start_pms
This commit is contained in:
parent
2b35049cc0
commit
aaff69a085
@ -11,7 +11,7 @@ export PLEX_MEDIA_SERVER_CONFIG_DIR="${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR
|
||||
if [ ! -d "$PLEX_MEDIA_SERVER_CONFIG_DIR" ]
|
||||
then
|
||||
mkdir -p "$PLEX_MEDIA_SERVER_CONFIG_DIR" && \
|
||||
chown $UID:$GID "$PLEX_MEDIA_SERVER_CONFIG_DIR"
|
||||
chown $SUID:$SGID "$PLEX_MEDIA_SERVER_CONFIG_DIR"
|
||||
if [ ! $? -eq 0 ]
|
||||
then
|
||||
echo "WARNING COULDN'T CREATE $PLEX_MEDIA_SERVER_CONFIG_DIR, MAKE SURE I HAVE PERMISSON TO DO THAT!"
|
||||
@ -34,7 +34,7 @@ export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}:$LD_LIBRARY_PATH"
|
||||
export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}"
|
||||
|
||||
# Allow Plex group to write to tmpdir
|
||||
chgrp $GID "$TMPDIR"
|
||||
chgrp $SGID "$TMPDIR"
|
||||
chmod g+rwx "$TMPDIR"
|
||||
|
||||
PIDFILE="${PLEX_MEDIA_SERVER_CONFIG_DIR}/plexmediaserver.pid"
|
||||
|
Loading…
Reference in New Issue
Block a user