Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Dec 1, 2019
1 parent 6e9f54d commit 3003bda
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
10 changes: 3 additions & 7 deletions menu/alias/templates/ptsupdate
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@
# URL: https://pgblitz.com - http://github.pgblitz.com
# GNU: General Public License v3.0
################################################################################
source /opt/ptsupdate/functions/functions.sh
source /opt/ptsupdate/functions/start.sh

source /opt/plexguide/menu/functions/functions.sh
source /opt/plexguide/menu/functions/start.sh

sudocheck
missingpull
exitcheck
remove
redit
owned
check
templatespart2
16 changes: 16 additions & 0 deletions menu/functions/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,26 @@ alias() {
ansible-playbook /opt/plexguide/menu/alias/alias.yml
}

check(){
file="/opt/plexguide/menu/pg.yml"
if [[ -f $file ]]; then
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ All files Valid
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
else ansible-playbook /opt/plexguide/menu/version/missing_pull.yml; fi
}

remove(){
ansible-playbook /opt/plexguide/menu/pg.yml --tag remove 1>/dev/null 2>&1
}

templatespart2() {
remove && redit && alias 1>/dev/null 2>&1 && owned 1>/dev/null 2>&1
check
}

redit(){
canonical-livepatch disable 1>/dev/null 2>&1
disable-livepatch -r 1>/dev/null 2>&1
Expand Down

0 comments on commit 3003bda

Please sign in to comment.