2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2025-06-14 15:01:12 +00:00

Use updated su-exec options

This commit is contained in:
2017-12-15 16:43:33 +00:00
parent f63d3083bd
commit b6a19ca720
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ then
exit 1
fi
fi
if su-exec $UID:$GID [ ! -w "$PLEX_MEDIA_SERVER_CONFIG_DIR" ]
if su-exec -e [ ! -w "$PLEX_MEDIA_SERVER_CONFIG_DIR" ]
then
echo "ERROR: CANNOT WRITE IN $PLEX_MEDIA_SERVER_CONFIG_DIR, MAKE SURE I HAVE PERMISSION TO DO THAT!"
exit 2
@ -44,4 +44,4 @@ fi
tail -F "$PLEX_MEDIA_SERVER_CONFIG_DIR/Logs/Plex Media Server.log" >/proc/1/fd/1 2>/dev/null &
exec su-exec $UID:$GID "$PLEX_MEDIA_SERVER_HOME/Plex Media Server"
exec su-exec -e "$PLEX_MEDIA_SERVER_HOME/Plex Media Server"