Skip to content

Commit

Permalink
Update pgscan.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 16, 2019
1 parent 3c8b830 commit f6a010c
Showing 1 changed file with 6 additions and 35 deletions.
41 changes: 6 additions & 35 deletions menu/pgscan/pgscan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,38 +153,6 @@ EOF
else works; fi
}

plexautoscansettings() {
clear

tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 Plex_AutoScan Settings Interface
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[ 1 ] Show last 50 lines of plex_autoscan.log
[ 2 ] Update Sections
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF

read -p '↘️ Type Number | Press [ENTER]: ' typed </dev/tty

case $typed in
1)
tail -n 50 /opt/plex_autoscan/plex_autoscan.log
doneenter
;;
2)
python /opt/plex_autoscan/scan.py update_sections
doneenter
;;
*)
question1
;;
esac
}


# FIRST QUESTION
question1() {
Expand All @@ -204,7 +172,8 @@ NOTE : Plex_AutoScan are located in /opt/plex_autoscan
[A] Deploy Scan [ $dstatus ]
[D] PlexAutoScan Domain
[S] Plex_AutoScan Settings
[S] Show last 50 lines of log
[C] Credits
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Expand Down Expand Up @@ -240,10 +209,12 @@ EOF
showupdomain
;;
S)
plexautoscansettings
tail -n 50 /opt/plex_autoscan/plex_autoscan.log
doneenter
;;
s)
plexautoscansettings
tail -n 50 /opt/plex_autoscan/plex_autoscan.log
doneenter
;;
C)
credits
Expand Down

0 comments on commit f6a010c

Please sign in to comment.