From e92f5b104da0f39e5ff16fc68a28e040935b75ff Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 22 Aug 2016 13:20:40 +0100 Subject: [PATCH] add message box outline for no updates set --- root/etc/cont-init.d/{20-dbus => 30-dbus} | 3 ++- .../cont-init.d/{30-plex-update => 40-plex-update} | 12 ++++++++++-- .../cont-init.d/{40-chown-files => 50-chown-files} | 8 +++----- 3 files changed, 15 insertions(+), 8 deletions(-) rename root/etc/cont-init.d/{20-dbus => 30-dbus} (89%) rename root/etc/cont-init.d/{30-plex-update => 40-plex-update} (86%) rename root/etc/cont-init.d/{40-chown-files => 50-chown-files} (65%) diff --git a/root/etc/cont-init.d/20-dbus b/root/etc/cont-init.d/30-dbus similarity index 89% rename from root/etc/cont-init.d/20-dbus rename to root/etc/cont-init.d/30-dbus index ef94cef..162daa1 100644 --- a/root/etc/cont-init.d/20-dbus +++ b/root/etc/cont-init.d/30-dbus @@ -1,7 +1,8 @@ #!/usr/bin/with-contenv bash # make folders -mkdir -p /var/run/dbus +mkdir -p \ + /var/run/dbus # delete existing pid if found [[ -e /var/run/dbus/pid ]] && \ diff --git a/root/etc/cont-init.d/30-plex-update b/root/etc/cont-init.d/40-plex-update similarity index 86% rename from root/etc/cont-init.d/30-plex-update rename to root/etc/cont-init.d/40-plex-update index 2d04886..09bffce 100644 --- a/root/etc/cont-init.d/30-plex-update +++ b/root/etc/cont-init.d/40-plex-update @@ -1,7 +1,15 @@ #!/usr/bin/with-contenv bash -# opt out for autoupdates -[ "$ADVANCED_DISABLEUPDATES" ] && \ +# set no update message +####################################################### +# Update routine will not run, this is either because # +# you havent set the VERSION variable or have set # +# $ADVANCED_DISABLEUPDATES, for more information, see # +#  # +####################################################### + +# test for no version set or opt out for autoupdates +[[ "$ADVANCED_DISABLEUPDATES" ]] || && \ exit 0 # set header for no preferences/token message diff --git a/root/etc/cont-init.d/40-chown-files b/root/etc/cont-init.d/50-chown-files similarity index 65% rename from root/etc/cont-init.d/40-chown-files rename to root/etc/cont-init.d/50-chown-files index 71c1838..bef9d2a 100644 --- a/root/etc/cont-init.d/40-chown-files +++ b/root/etc/cont-init.d/50-chown-files @@ -1,13 +1,11 @@ #!/usr/bin/with-contenv bash -if [ ! -d "/config/Library" ]; then - mkdir /config/Library - chown abc:abc /config/Library -fi +# check for preferences file and exit out if not found +[[ ! -e "/config/Library/Application Support/Plex Media Server/Preferences.xml" ]] && \ + exit 0 if [ ! -f "/config/Library/linuxserver-chown.lock" ]; then find /config/Library ! \( -user abc -a -group abc \) -print0 | xargs -0 chown abc:abc touch /config/Library/linuxserver-chown.lock chown abc:abc /config/Library/linuxserver-chown.lock fi -