mirror of
https://github.com/MHA-Team/PTS-Team.git
synced 2026-02-26 23:22:32 +00:00
32 lines
1.6 KiB
Bash
32 lines
1.6 KiB
Bash
#!/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
|