mirror of
https://github.com/MHA-Team/PTS-Team.git
synced 2026-02-03 14:03:25 +00:00
45 lines
1.7 KiB
Bash
45 lines
1.7 KiB
Bash
#!/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
|