Skip to content

Commit

Permalink
plex.pw / adel / astatus
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 20, 2019
1 parent 85c3de7 commit ac49b6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions menu/plex_dupe/plex_dupe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ tokenstatus() {
else pstatus="⚠️ NOT DEPLOYED"; fi
}

adel() {
adep=$(cat /var/plex_dupe/plex.authdel)
if [ "$adep" == "true" ]; then
astatus="✅ AUTO_DELETE = true"
elif [ "$adep" == "false" ]; then
astatus="✅ AUTO_DELETE = false"
else astatus="⚠️ NOT DEPLOYED"; fi
}

plexcheck() {
pcheck=$(docker ps | grep "\<plex\>")
if [ "$pcheck" == "" ]; then
Expand Down Expand Up @@ -194,6 +203,7 @@ NOTE : Plex Dupefinder are located in /opt/plex_dupefinder
[1] Deploy Plex Username & Plex Passwort [ $ustatus ]
[2] Deploy Plex Token [ $pstatus ]
[3] Deploy AUTO_DELETE [ $astatus ]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Expand Down Expand Up @@ -247,6 +257,7 @@ EOF
# FUNCTIONS END ##############################################################
plexcheck
userstatus
adel
tokenstatus
deploycheck
question1
2 changes: 1 addition & 1 deletion menu/plex_dupe/scripts/plex_pw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ question1() {
🌎 Plex User Name Store
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[1] - Generate stored details for PTS - PAS - Scan
[1] - Generate stored details for Plex Dupefinder
[Z] - Exit
Expand Down

0 comments on commit ac49b6d

Please sign in to comment.