From cf39aa1c676eaf1638b2369342d3c6f6fcaba55a Mon Sep 17 00:00:00 2001 From: MrDoobPG <46342172+MrDoobPG@users.noreply.github.com> Date: Sat, 24 Aug 2019 20:38:45 +0200 Subject: [PATCH] 11 --- menu/alias/templates/ptsupdate | 2 ++ menu/functions/install.sh | 14 +++++++++++++- menu/functions/start.sh | 6 ++++-- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/menu/alias/templates/ptsupdate b/menu/alias/templates/ptsupdate index f25980b5..cfb4797a 100644 --- a/menu/alias/templates/ptsupdate +++ b/menu/alias/templates/ptsupdate @@ -10,4 +10,6 @@ source /opt/plexguide/menu/functions/start.sh sudocheck missingpull +owned exitcheck + diff --git a/menu/functions/install.sh b/menu/functions/install.sh index 81952b6e..f77f4313 100644 --- a/menu/functions/install.sh +++ b/menu/functions/install.sh @@ -80,7 +80,7 @@ pginstall() { kernel nvidia system - +ยด touch /var/plexguide/install.roles rolenumber=3 # Roles Ensure that PG Replicates and has once if missing; important for startup, cron and etc @@ -154,6 +154,18 @@ dependency() { fi } +kernel() { + ansible-playbook /opt/plexguide/menu/pg.yml --tags kernel +} + +nvidia() { + ansible-playbook /opt/plexguide/menu/pg.yml --tags nvidia +} + +system() { + ansible-playbook /opt/plexguide/menu/pg.yml --tags system +} + docstart() { ansible-playbook /opt/plexguide/menu/pg.yml --tags docstart } diff --git a/menu/functions/start.sh b/menu/functions/start.sh index 46abac75..d51a4b4c 100644 --- a/menu/functions/start.sh +++ b/menu/functions/start.sh @@ -20,7 +20,6 @@ EOF exit 1 fi } - downloadpg() { rm -rf /opt/plexguide git clone https://github.com/MrDoobPG/PGBlitz.com.git /opt/plexguide && cp /opt/plexguide/menu/interface/alias/templates/pts /bin/ @@ -58,7 +57,10 @@ EOF sleep 2 fi } - +owned() { + chown -cR 1000:1000 /opt/plexguide/ 1>/dev/null 2>&1 + chmod -R 775 /opt/plexguide 1>/dev/null 2>&1 +} exitcheck() { bash /opt/plexguide/menu/version/file.sh file="/var/plexguide/exited.upgrade"