Skip to content

Commit

Permalink
11
Browse files Browse the repository at this point in the history
11
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Aug 11, 2019
1 parent c5bf18e commit d02f27d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
14 changes: 12 additions & 2 deletions menu/pgbox/pgbox_corepersonal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
- hosts: localhost
gather_facts: false
tasks:
- name: Check if Image Variable Exists
stat:
path: '/opt/coreapps'
register: pathcheck

- name: 'Transfer Image Variable'
shell: 'rm -rf /opt/coreapps'
when: pathcheck.stat.exists

- name: Register User
shell: 'cat /var/plexguide/boxcore.user'
register: boxuser
Expand All @@ -14,9 +23,10 @@
shell: 'cat /var/plexguide/boxcore.branch'
register: boxbranch

- name: 'Cloning {{boxuser.stdout}} Core Apps'
- name: 'Cloning {{boxuser.stdout}} Apps'
git:
repo: 'https://github.com/{{boxuser.stdout}}/{{boxrepo.repo}}'
repo: 'https://github.com/{{boxuser.stdout}}/{{boxrepo.stdout}}'
dest: '/opt/coreapps'
clone: yes
version: '{{boxbranch.stdout}}'
force: yes
11 changes: 6 additions & 5 deletions menu/pgbox/pgboxcore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ EOF
pinterface() {

boxuser=$(cat /var/plexguide/boxcore.user)
boxbrepo=$(cat /var/plexguide/boxrepo.repo)
boxrepo=$(cat /var/plexguide/boxrepo.repo)
boxbranch=$(cat /var/plexguide/boxcore.branch)


Expand All @@ -255,9 +255,10 @@ pinterface() {
🚀 PG Core Box Edition!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💬 User: $boxuser
Repo: $boxrepo
Branch: $boxbranch
💬
User: $boxuser
Repo: $boxrepo
Branch: $boxbranch
[1] Change User Name & Branch
[2] Deploy Core Box - Personal (Forked)
Expand Down Expand Up @@ -347,7 +348,7 @@ EOF
;;
2)
variable /var/plexguide/boxcore.user "NOT-SET"
variable >/var/plexguide/boxrepo.repo "NOT-SET"
variable /var/plexguide/boxrepo.repo "NOT-SET"
variable /var/plexguide/boxcore.branch "NOT-SET"
pinterface
;;
Expand Down

0 comments on commit d02f27d

Please sign in to comment.