Skip to content

Commit

Permalink
11
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Aug 24, 2019
1 parent e4a9b8f commit cf39aa1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 2 additions & 0 deletions menu/alias/templates/ptsupdate
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ source /opt/plexguide/menu/functions/start.sh

sudocheck
missingpull
owned
exitcheck

14 changes: 13 additions & 1 deletion menu/functions/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down
6 changes: 4 additions & 2 deletions menu/functions/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit cf39aa1

Please sign in to comment.