Skip to content

Commit

Permalink
final ^^
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 20, 2019
1 parent 08c6819 commit 2b6590e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
10 changes: 8 additions & 2 deletions menu/plex_dupe/plex_dupe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ doneenter(){
read -p 'All done | PRESS [ENTER] ' typed </dev/tty
question1
}
endbanner() {
bash /opt/plexguide/menu/plex_dupe/scripts/endbanner.sh
echo
read -p ' Confirm Info | PRESS [ENTER] ' typed </dev/tty
question1
}

authdel(){
clear
Expand Down Expand Up @@ -227,9 +233,9 @@ EOF
3)
authdel && clear && question1 ;;
A)
ansible-playbook /opt/plexguide/menu/pg.yml --tags plex_dupefinder && clear && question1 ;;
ansible-playbook /opt/plexguide/menu/pg.yml --tags plex_dupefinder && clear && endbanner ;;
a)
ansible-playbook /opt/plexguide/menu/pg.yml --tags plex_dupefinder && clear && question1 ;;
ansible-playbook /opt/plexguide/menu/pg.yml --tags plex_dupefinder && clear && endbanner ;;
C)
credits && clear && question1 ;;
c)
Expand Down
3 changes: 3 additions & 0 deletions menu/roles/plex_autoscan/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
- name: Import Services Task
import_tasks: "subtasks/services.yml"

- name: Remove old Install
shell: 'sudo rm -rf /opt/plex_autoscan'

- name: Create plex_autoscan directories
file: "path={{ item }} state=directory mode=0775 owner=1000 group=1000 recurse=yes"
with_items:
Expand Down
29 changes: 25 additions & 4 deletions menu/roles/plex_dupefinder/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
with_items:
- /opt/plex_dupefinder

- name: Remove old Install
shell: 'sudo rm -rf /opt/plex_dupefinder'

- name: Create plex_dupefinder directories
file: "path={{ item }} state=directory mode=0775 owner=1000 group=1000 recurse=yes"
with_items:
- /opt/plex_dupefinder

- name: Clone plex_dupefinder == HEAD
git:
repo: https://github.com/l3uddz/plex_dupefinder.git
Expand All @@ -41,7 +49,6 @@
version: HEAD
force: yes
ignore_errors: yes
register: plex_dupefinder_clone_status

- name: Clone plex_dupefinder repo == master
git:
Expand All @@ -50,9 +57,7 @@
clone: yes
version: master
force: yes
become: yes
become_user: "1000"
when: plex_dupefinder_status is failed
ignore_errors: yes

- name: Install pip requirements
pip:
Expand Down Expand Up @@ -86,3 +91,19 @@
src: "/opt/plex_dupefinder/plex_dupefinder.py"
dest: "/usr/local/bin/plex_dupefinder"
state: link

# scripts permissions
- name: 'Setting permissions on scripts'
shell: 'chown -cR 1000:1000 /opt/plex_dupefinder'

# scripts permissions
- name: 'Setting permissions on scripts'
shell: 'chmod -cR 775 /opt/plex_dupefinder'

- name: Remove .githube folder and .git files
file: "path={{ item }} state=absent"
with_items:
- '/opt/plex_dupefinder/.git'
- '/opt/plex_dupefinder/.github'
- '/opt/plex_dupefinder/assets'
- '/opt/plex_dupefinder/.gitignore'

0 comments on commit 2b6590e

Please sign in to comment.