Skip to content

Commit

Permalink
Update endbanner.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Dec 19, 2019
1 parent 0b513e0 commit 5829cbe
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions menu/pgscan/scripts/endbanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,38 @@
# GNU: General Public License v3.0
################################################################################
pasdeployed() {
printf '
PAS_CONFIG="/opt/plex_autoscan/config/config.json"

SERVER_IP=$(ip a | grep glo | awk '{print $2}' | head -1 | cut -f1 -d/)
SERVER_PORT=$(cat ${PAS_CONFIG} | jq -r .SERVER_PORT)
SERVER_PASS=$(cat ${PAS_CONFIG} | jq -r .SERVER_PASS)

tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💬 NOTE / INFO MANUAL EDITS IS NEEDED NOW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1.) Stop downloading
2.) link now PAS to each arr ( see wiki )
3.) Edit plex scan part ( see wiki )
4.) Restart Plex Docker
5.) Start downloading again
6.) Have fun
1.) Link now PAS to each *arr ( see wiki )
"http://${SERVER_IP}:${SERVER_PORT}/${SERVER_PASS}"
2.) Edit Plex Scan Part ( see wiki )
3.) Restart your Plex Docker
4.) Start Downloading again
5.) Have fun
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💬 Plex Docker Restart now
[ Y ] Restart Plex Docker now !
[ N ] No. I will do it myself later
[ N ] No. I will do it myself later.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
'
EOF
read -p '↘️ Type [ Y ] or [ N ] | Press [ENTER]: ' typed </dev/tty

case $typed in
Y) docker restart plex && exit 0 ;;
y) docker restart plex && exit 0 ;;
Y) docker restart plex && exit ;;
y) docker restart plex && exit ;;
N) exit 0 ;;
n) exit 0 ;;
*) exit 0 ;;
Expand All @@ -42,10 +49,10 @@ printf '
💬 NOTE / INFO MANUAL EDITS IS NEEDED NOW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1.) Stop downloading
2.) wait until all files have been uploaded
3.) Rescan all media libraries on Plex
4.) Wait until finished
1.) Stop Downloading
2.) Wait until all files have been uploaded
3.) Rescan all Media Libraries on Plex
4.) Wait until finished Plex full rescan
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
'
Expand Down

0 comments on commit 5829cbe

Please sign in to comment.