From e5bc076e50381bbe88b55ed3e7c4a89774fda12a Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Fri, 2 Jun 2017 22:24:49 +0100 Subject: [PATCH] Fix remote inheritance for new installations --- start_pms | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/start_pms b/start_pms index c60d400..51d3b7f 100644 --- a/start_pms +++ b/start_pms @@ -23,6 +23,12 @@ then echo "ERROR: CANNOT WRITE IN $PLEX_MEDIA_SERVER_CONFIG_DIR, MAKE SURE I HAVE PERMISSION TO DO THAT!" exit 2 fi +if [ ! -e "$PLEX_MEDIA_SERVER_CONFIG_DIR/Preferences.xml" ]; +then + # Create a default config file allowing external access + echo -e '\n' \ + >> "$PLEX_MEDIA_SERVER_CONFIG_DIR/Preferences.xml" +fi export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}:$LD_LIBRARY_PATH" export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}"