#!/bin/bash # # Title: PGBlitz (Reference Title File) # Author(s): Admin9705 - Deiteq # URL: https://pgblitz.com - http://github.pgblitz.com # GNU: General Public License v3.0 ################################################################################ touch /var/plexguide/plex.updaterole touch /var/plexguide/plex.server touch /var/plexguide/plex.claim # FUNCTIONS START ############################################################## # BAD INPUT badinput() { echo read -p '⛔️ ERROR - BAD INPUT! | PRESS [ENTER] ' typed /var/plexguide/plex.server ;; 2) echo "local" >/var/plexguide/plex.server ;; *) badinput ;; esac } # THIRD QUESTION claim() { tee <<-EOF ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🌎 Remote Plex Server - Claim the Plex Server ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ To Claim the Plex Server, visit https://www.plex.tv/claim/ and input the code below! You have 5 minutes to do so! If you are reinstalling plex with existing appdata press enter to skip this step as you won't need to claim it again. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ EOF read -p 'Plex Server Claim Number | Press [ENTER]: ' typed /var/plexguide/plex.claim #####LSIO part plexcontainerversion=$(cat /var/plexguide/image/plex) if [[ $plexcontainerversion == "linuxserver/plex:latest" ]]; then bash /opt/plexguide/menu/plex/lsio-plex-claim.sh $(cat /var/plexguide/plex.claim) fi } ### for LSIO UPDATE ROLE docker updateplexlsio() { tee <<-EOF ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🌎 Update Plex Server Automatic Update for Linuxserver.io ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ [ 1 ] docker: Let Docker handle the Plex Version, we keep our Dockerhub Endpoint up to date with the latest public builds. This is the same as leaving this setting out of your create command. [ 2 ] latest: will update plex to the latest version available that you are entitled to. [ 3 ] public: will update plexpass users to the latest public version, useful for plexpass users that don't want to be on the bleeding edge but still want the latest public updates. ´ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ EOF read -p '↘️ Type Number | Press [ENTER]: ' typed /var/plexguide/plex.updaterole ;; 2) echo "latest" >/var/plexguide/plex.updaterole ;; 3) echo "public" >/var/plexguide/plex.updaterole ;; *) badinput ;; esac } # SETVALUE END ############################################################## start0 #ansible-playbook /opt/coreapps/apps/plex.yml