forked from HawksRepos/PTS-Team
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MrDoobPG
authored and
MrDoobPG
committed
Sep 11, 2019
1 parent
88acf41
commit 9e617bb
Showing
195 changed files
with
19,645 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Author(s): Admin9705 - Deiteq | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
--- | ||
- hosts: localhost | ||
gather_facts: false | ||
tasks: | ||
- name: Install PGVPN | ||
template: | ||
src: pgvpn | ||
dest: /bin/pgvpn | ||
force: yes | ||
mode: 0775 | ||
|
||
- name: Install Status UFSMonitor | ||
template: | ||
src: sufs | ||
dest: /bin/sufs | ||
force: yes | ||
mode: 0775 | ||
|
||
- name: Nano UFSMonitor | ||
template: | ||
src: nufs | ||
dest: /bin/nufs | ||
force: yes | ||
mode: 0775 | ||
|
||
###### Install PTSupdate | ||
|
||
- name: PTSupdate | ||
template: | ||
src: ptsupdate | ||
dest: /bin/ptsupdate | ||
force: yes | ||
mode: 0775 | ||
|
||
###### Install PGBlitz | ||
|
||
- name: PlexGuide | ||
template: | ||
src: plexguide | ||
dest: /bin/plexguide | ||
force: yes | ||
mode: 0775 | ||
owner: root | ||
|
||
- name: PG | ||
template: | ||
src: pts | ||
dest: /bin/pts | ||
force: yes | ||
mode: 0775 | ||
owner: root | ||
|
||
- name: PGBlitz | ||
template: | ||
src: pgblitz | ||
dest: /bin/pgblitz | ||
force: yes | ||
mode: 0775 | ||
owner: root | ||
|
||
###### Server reboot | ||
|
||
- name: server reboot | ||
template: | ||
src: reboot | ||
dest: /bin/reboot | ||
force: yes | ||
mode: 0775 | ||
|
||
###### Check list of services | ||
|
||
- name: list systemd services | ||
template: | ||
src: slist | ||
dest: /bin/slist | ||
force: yes | ||
mode: 0775 | ||
owner: root | ||
|
||
###### Server update | ||
|
||
- name: update server | ||
template: | ||
src: update | ||
dest: /bin/update | ||
force: yes | ||
mode: 0775 | ||
|
||
###### Server upgrade | ||
|
||
- name: upgrade server | ||
template: | ||
src: upgrade | ||
dest: /bin/upgrade | ||
force: yes | ||
mode: 0775 | ||
owner: root | ||
|
||
###### Install app | ||
|
||
- name: install appname | ||
template: | ||
src: install | ||
dest: /bin/install | ||
force: yes | ||
mode: 0775 | ||
owner: root | ||
|
||
###### Autoremove installed app packages | ||
|
||
- name: autoremove unused packages after app install | ||
template: | ||
src: autoremove | ||
dest: /bin/autoremove | ||
force: yes | ||
mode: 0775 | ||
owner: root | ||
|
||
- name: Prune docker containers appname | ||
template: | ||
src: prune | ||
dest: /bin/prune | ||
force: yes | ||
mode: 0775 | ||
owner: root | ||
|
||
- name: Install PGFork | ||
template: | ||
src: pgfork | ||
dest: /bin/pgfork | ||
force: yes | ||
mode: 0775 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Author(s): Admin9705 - Deiteq | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
|
||
sudo apt autoremove |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Author(s): Admin9705 - Deiteq - Sub7Seven | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
sudo apt install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Author(s): Admin9705 - Deiteq - Sub7Seven | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
|
||
sudo nano /etc/systemd/system/ufsmonitor.service && systemctl daemon-reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Author(s): Admin9705 | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
file="/var/pgblitz/pg.number" | ||
if [ -e "$file" ]; then | ||
check="$(cat /var/pgblitz/pg.number | head -c 1)" | ||
if [[ "$check" == "5" || "$check" == "6" || "$check" == "7" ]]; then | ||
|
||
tee <<-EOF | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
🌎 INSTALLER BLOCK: Notice | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
We detected PG Version $check is running! Per the instructions, PG 8 | ||
must be installed on a FRESH BOX! Exiting! | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
EOF | ||
exit | ||
fi | ||
fi | ||
|
||
source /opt/plexguide/menu/functions/functions.sh | ||
source /opt/plexguide/menu/functions/start.sh | ||
source /opt/plexguide/menu/functions/install.sh | ||
|
||
mkdir -p /opt/plexguide/roles/log | ||
mkdir -p /var/plexguide/logs | ||
mkdir -p /opt/appdata/plexguide | ||
|
||
sudocheck | ||
missingpull | ||
|
||
if [[ ! -e "/bin/pgblitz" ]]; then | ||
cp /opt/plexguide/menu/alias/templates/pgblitz /bin | ||
fi | ||
|
||
chown 1000:1000 /bin/pgblitz &>/dev/null & | ||
chmod 0755 /bin/pgblitz &>/dev/null & | ||
# pg deploy contains pgdeploy at end | ||
pginstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Author(s): Admin9705 | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
file="/var/plexguide/pg.number" | ||
if [ -e "$file" ]; then | ||
check="$(cat /var/plexguide/pg.number | head -c 1)" | ||
if [[ "$check" == "5" || "$check" == "6" || "$check" == "7" ]]; then | ||
|
||
tee <<-EOF | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
🌎 INSTALLER BLOCK: Notice | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
We detected PG Version $check is running! Per the instructions, PG 8 | ||
must be installed on a FRESH BOX! Exiting! | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
EOF | ||
exit | ||
fi | ||
fi | ||
|
||
source /opt/plexguide/menu/functions/functions.sh | ||
source /opt/plexguide/menu/functions/start.sh | ||
source /opt/plexguide/menu/functions/install.sh | ||
|
||
mkdir -p /opt/plexguide/roles/log | ||
mkdir -p /var/plexguide/logs | ||
mkdir -p /opt/appdata/plexguide | ||
|
||
sudocheck | ||
missingpull | ||
|
||
# pg deploy contains pgdeploy at end | ||
pginstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Author(s): Admin9705 - Deiteq - Sub7Seven | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
if [[ $EUID -ne 0 ]]; then | ||
tee <<-EOF | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
⛔️ You Must Execute as a SUDO USER (with sudo) or as ROOT! | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
EOF | ||
exit 1 | ||
fi | ||
|
||
### Execut YML | ||
ansible-playbook /opt/plexguide/menu/pgfork/main.yml | ||
|
||
tee <<-EOF | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
✅️ SYSTEM MESSAGE: Installed User's Forked Version of PG! Standby! | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
EOF | ||
sleep 1.5 | ||
file="/var/plexguide/community.app" | ||
if [ -e "$file" ]; then rm -rf /var/plexguide/community.app; fi | ||
bash /opt/plexguide/menu/interface/ending.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Author(s): Admin9705 - Deiteq - Sub7Seven | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
echo "" | ||
echo "-----------------------------------------------------" | ||
echo "SYSTEM MESSAGE: Please Copy Your Information" | ||
echo "-----------------------------------------------------" | ||
echo "" | ||
cat /opt/appdata/plexguide/vpn.info | ||
echo "" | ||
echo "Config Info: Visit http://pgvpn.pgblitz.com or WIKI" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Author(s): Admin9705 | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
file="/var/plexguide/pg.number" | ||
if [ -e "$file" ]; then | ||
check="$(cat /var/plexguide/pg.number | head -c 1)" | ||
if [[ "$check" == "5" || "$check" == "6" || "$check" == "7" ]]; then | ||
|
||
tee <<-EOF | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
🌎 INSTALLER BLOCK: Notice | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
We detected PG Version $check is running! Per the instructions, PG 8 | ||
must be installed on a FRESH BOX! Exiting! | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
EOF | ||
exit | ||
fi | ||
fi | ||
|
||
source /opt/plexguide/menu/functions/functions.sh | ||
source /opt/plexguide/menu/functions/start.sh | ||
source /opt/plexguide/menu/functions/install.sh | ||
|
||
mkdir -p /opt/plexguide/roles/log | ||
mkdir -p /var/plexguide/logs | ||
mkdir -p /opt/appdata/plexguide | ||
|
||
sudocheck | ||
missingpull | ||
|
||
if [[ ! -e "/bin/pgblitz" ]]; then | ||
cp /opt/plexguide/menu/alias/templates/pgblitz /bin/ &>/dev/null & | ||
chown 1000:1000 /bin/pgblitz | ||
chmod 0755 /bin/pgblitz | ||
fi | ||
# pg deploy contains pgdeploy at end | ||
pginstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Author(s): Admin9705 - Deiteq - Sub7Seven | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
sudo docker system prune --volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
# | ||
# Title: PGBlitz (Reference Title File) | ||
# Author(s): Admin9705 | ||
# URL: https://pgblitz.com - http://github.pgblitz.com | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
file="/var/plexguide/pg.number" | ||
if [ -e "$file" ]; then | ||
check="$(cat /var/plexguide/pg.number | head -c 1)" | ||
if [[ "$check" == "5" || "$check" == "6" || "$check" == "7" ]]; then | ||
|
||
tee <<-EOF | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
🌎 INSTALLER BLOCK: Notice | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
We detected PG Version $check is running! Per the instructions, PG 8 | ||
must be installed on a FRESH BOX! Exiting! | ||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
EOF | ||
exit | ||
fi | ||
fi | ||
|
||
source /opt/plexguide/menu/functions/functions.sh | ||
source /opt/plexguide/menu/functions/start.sh | ||
source /opt/plexguide/menu/functions/install.sh | ||
|
||
mkdir -p /opt/plexguide/roles/log | ||
mkdir -p /var/plexguide/logs | ||
mkdir -p /opt/appdata/plexguide | ||
|
||
sudocheck | ||
missingpull | ||
|
||
# pg deploy contains pgdeploy at end | ||
pginstall |
Oops, something went wrong.