Skip to content

Commit

Permalink
fucked updater
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 7, 2019
1 parent 11dcca1 commit 0477a6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
6 changes: 3 additions & 3 deletions menu/functions/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ EOF

downloadpg() {
rm -rf /opt/plexguide
git clone https://github.com/PTS-Team/PTS-Team.git /opt/plexguide 1>/dev/null 2>&1
git clone --single-branch https://github.com/PTS-Team/PTS-Team.git /opt/plexguide 1>/dev/null 2>&1
ansible-playbook /opt/plexguide/menu/alias/alias.yml 1>/dev/null 2>&1
rm -rf /opt/plexguide/place.holder >/dev/null 2>&1
rm -rf /opt/plexguide/.git* >/dev/null 2>&1
Expand All @@ -43,7 +43,7 @@ EOF
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🍖 NOM NOM - Re-Downloading PTS
🍖 NOM NOM - Re-Downloading PTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
sleep 2
Expand Down Expand Up @@ -74,4 +74,4 @@ exitcheck() {
echo ""
bash /opt/plexguide/menu/interface/ending.sh
fi
}
}
16 changes: 4 additions & 12 deletions menu/version/choice.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
#
# Title: PTS Updater
# Author(s): MrDoobPG
# Author(s): Admin9705 - Deiteq
# URL: https://pgblitz.com - http://github.pgblitz.com
# GNU: General Public License v3.0
################################################################################
---
Expand All @@ -25,18 +26,9 @@
path: /opt/plexguide
register: p
- debug:
msg: "Path exists and PTS folder and pulled"
msg: "Path exists and PTS folder exists"
when: p.stat.isdir is defined and p.stat.isdir

- name: Remove .githube folder and .git files
file: 'path={{item}} state=absent mode=0775 owner=1000 group=1000'
with_items:
- '/opt/plexguide/.git'
- '/opt/plexguide/.github'
- '/opt/plexguide/.gitignore'
- '/opt/plexguide/LICENSE'
- '/opt/plexguide/README.md'

- name: 'Stops First Time Run'
shell: 'touch /var/plexguide/ask.yes'
register: program
register: program

0 comments on commit 0477a6f

Please sign in to comment.