From 78f96a9629d7cb284b83c47d091aaa3086058a08 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 22 Aug 2016 20:41:24 +0100 Subject: [PATCH] still working on update script --- root/etc/cont-init.d/50-plex-update | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/root/etc/cont-init.d/50-plex-update b/root/etc/cont-init.d/50-plex-update index fc6acbe..2791d55 100644 --- a/root/etc/cont-init.d/50-plex-update +++ b/root/etc/cont-init.d/50-plex-update @@ -15,8 +15,8 @@ cat > "${NOVERSION_SET}" <<-EOFVERSION EOFVERSION # test for no version set or opt out for autoupdates -if [ -z "$VERSION" -o "$VERSION" == "0" -o ! -z "$ADVANCED_DISABLEUPDATES" ]; then -echo "$(cat /tmp/no-version.nfo)" +if [[ -z "$VERSION" ]] || [[ "$VERSION" == "0" ]] || [[ ! -z "$ADVANCED_DISABLEUPDATES" ]]; then +printf "%s\n\n\n" "$(> "${NOTOKEN_SET}" <<-EOFTOKEN # preference file found, possibly first startup. # ##################################################### - - EOFTOKEN -echo "$(cat /tmp/no-token.nfo)" +printf "%s\n\n\n" "$(> "${NOTOKEN_SET}" <<-EOFTOKEN # plex token found in the preference file # ##################################################### - - EOFTOKEN -echo "$(cat /tmp/no-token.nfo)" +printf "%s\n\n\n" "$(