#!/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 ################################################################################ # FUNCTIONS START ############################################################## # BAD INPUT badinput() { echo read -p '⛔️ ERROR - BAD INPUT! | PRESS [ENTER] ' typed /var/plexguide/plex.server && question3 elif [ "$typed" == "2" ]; then echo local >/var/plexguide/plex.server elif [[ "$typed" == "z" || "$typed" == "Z" ]]; then exit else badinput2; fi } # THIRD QUESTION question3() { 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 if [ $(cat /var/plexguide/image/plex) == linuxserver/plex ];then bash /opt/plexguide/menu/plex/lsio-plex-claim.sh $(cat /var/plexguide/plex.claim) fi } # FUNCTIONS END ############################################################## question1 #ansible-playbook /opt/coreapps/apps/plex.yml