From d877424c8ccee4ebbb428b8cc8d7044ef5c02e29 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Sat, 25 Apr 2020 15:55:59 +0200 Subject: [PATCH] Rename plexpass to beta and document the beta flag (#77) * Rename plexpass to beta and document the beta flag (Fixes: #54) * Comment cleanup --- config.yml.example | 2 +- jails/plex/install.sh | 8 ++++---- jails/plex/readme.md | 3 +++ jails/plex/update.sh | 6 +++--- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/config.yml.example b/config.yml.example index d648f631..f9cc0adf 100644 --- a/config.yml.example +++ b/config.yml.example @@ -30,7 +30,7 @@ example: example pkgs: mono plex: plex - plexpass: false + beta: false nextcloud: nextcloud ip4_addr: 192.168.1.99/24 diff --git a/jails/plex/install.sh b/jails/plex/install.sh index e5bc94ba..77cad59b 100755 --- a/jails/plex/install.sh +++ b/jails/plex/install.sh @@ -21,15 +21,15 @@ iocage exec plex chown -R plex:plex /config iocage exec plex pkg update iocage exec plex pkg upgrade -y -# Run different install procedures depending on Plex vs Plexpass -if [ "$plex_plexpass" == "true" ]; then - echo "plexpass enabled in config.yml... using plexpass for install" +# Run different install procedures depending on Plex vs Plex Beta +if [ "$plex_beta" == "true" ]; then + echo "beta enabled in config.yml... using plex beta for install" iocage exec plex sysrc "plexmediaserver_plexpass_enable=YES" iocage exec plex sysrc plexmediaserver_plexpass_support_path="/config" iocage exec plex chown -R plex:plex /usr/local/share/plexmediaserver-plexpass/ iocage exec plex service plexmediaserver_plexpass restart else - echo "plexpass disabled in config.yml... NOT using plexpass for install" + echo "beta disabled in config.yml... NOT using plex beta for install" iocage exec plex sysrc "plexmediaserver_enable=YES" iocage exec plex sysrc plexmediaserver_support_path="/config" iocage exec plex chown -R plex:plex /usr/local/share/plexmediaserver/ diff --git a/jails/plex/readme.md b/jails/plex/readme.md index 2cac133d..4d5b5046 100755 --- a/jails/plex/readme.md +++ b/jails/plex/readme.md @@ -1,5 +1,8 @@ # Plex +### Config Parameters: +- beta: set to `true` if you want to run the plex beta (previously known as "plexpass"). Please note: This is not required for plexpass features + For more information about plex, please see the Plex website: # Original plex install script guide diff --git a/jails/plex/update.sh b/jails/plex/update.sh index 4f1d62c5..a9f7b7d4 100755 --- a/jails/plex/update.sh +++ b/jails/plex/update.sh @@ -1,15 +1,15 @@ #!/usr/local/bin/bash # This file contains the update script for Plex -# Run different update procedures depending on Plex vs Plexpass +# Run different update procedures depending on Plex vs Plex Beta if [ "$plex_plexpass" == "true" ]; then - echo "plexpass enabled in config.yml... using plexpass for update..." + echo "beta enabled in config.yml... using plex beta for update..." iocage exec plex service plexmediaserver_plexpass stop # Plex is updated using PKG already, this is mostly a placeholder iocage exec plex chown -R plex:plex /usr/local/share/plexmediaserver-plexpass/ iocage exec plex service plexmediaserver_plexpass restart else - echo "plexpass disabled in config.yml... NOT using plexpass for update..." + echo "beta disabled in config.yml... NOT using plex beta for update..." iocage exec plex service plexmediaserver stop # Plex is updated using PKG already, this is mostly a placeholder iocage exec plex chown -R plex:plex /usr/local/share/plexmediaserver/