Skip to content

Commit

Permalink
Update pgscan.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored Nov 24, 2019
1 parent 1a9dc53 commit f4e87c7
Showing 1 changed file with 16 additions and 34 deletions.
50 changes: 16 additions & 34 deletions menu/pgscan/pgscan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ NOTE : Plex_AutoScan are located in /opt/plex_autoscan
[2] Deploy Plex Token [ $pstatus ]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[A] Deploy Scan [ $dstatus ]
[A] Deploy Plex-Auto-Scan [ $dstatus ]
[D] PlexAutoScan Domain
[S] Show last 50 lines of log
Expand All @@ -206,39 +206,21 @@ EOF
read -p '↘️ Type Number | Press [ENTER]: ' typed </dev/tty

case $typed in
1)
bash /opt/plexguide/menu/pgscan/scripts/plex_pw.sh && clear && question1 ;;
2)
bash /opt/plexguide/menu/pgscan/scripts/plex_token.sh && clear && question1 ;;
A)
ansible-playbook /opt/plexguide/menu/pg.yml --tags plex_autoscan && clear && question1 ;;
a)
ansible-playbook /opt/plexguide/menu/pg.yml --tags plex_autoscan&& clear && question1 ;;
D)
showupdomain && clear && question1 ;;
d)
showupdomain && clear && question1 ;;
S)
tail -n 50 /opt/plex_autoscan/plex_autoscan.log && doneenter ;;
s)
tail -n 50 /opt/plex_autoscan/plex_autoscan.log && doneenter;;
r)
remove && doneenter ;;
R)
remoive && doneenter;;
C)
credits && clear && question1 ;;
c)
credits && clear && question1 ;;
z)
exit
;;
Z)
exit
;;
*)
question1
;;
1) bash /opt/plexguide/menu/pgscan/scripts/plex_pw.sh && clear && question1 ;;
2) bash /opt/plexguide/menu/pgscan/scripts/plex_token.sh && clear && question1 ;;
A) ansible-playbook /opt/plexguide/menu/pg.yml --tags plex_autoscan && clear && question1 ;;
a) ansible-playbook /opt/plexguide/menu/pg.yml --tags plex_autoscan&& clear && question1 ;;
D) showupdomain && clear && question1 ;;
d) showupdomain && clear && question1 ;;
S) tail -n 50 /opt/plex_autoscan/plex_autoscan.log && doneenter ;;
s) tail -n 50 /opt/plex_autoscan/plex_autoscan.log && doneenter;;
r) remove && doneenter ;;
R) remoive && doneenter;;
C) credits && clear && question1 ;;
c) credits && clear && question1 ;;
z) exit ;;
Z) exit ;;
*) question1 ;;
esac
}
# FUNCTIONS END ##############################################################
Expand Down

0 comments on commit f4e87c7

Please sign in to comment.