From 3003bdaf96c5f0f0ba500ae261b70c5a2c3cd0ca Mon Sep 17 00:00:00 2001 From: MrDoobPG <46342172+MrDoobPG@users.noreply.github.com> Date: Sun, 1 Dec 2019 17:53:19 +0100 Subject: [PATCH] update --- menu/alias/templates/ptsupdate | 10 +++------- menu/functions/install.sh | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/menu/alias/templates/ptsupdate b/menu/alias/templates/ptsupdate index ebbeb5c1..04aa3e4c 100644 --- a/menu/alias/templates/ptsupdate +++ b/menu/alias/templates/ptsupdate @@ -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 \ No newline at end of file +templatespart2 diff --git a/menu/functions/install.sh b/menu/functions/install.sh index 0e014939..141b6248 100644 --- a/menu/functions/install.sh +++ b/menu/functions/install.sh @@ -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