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