mirror of
https://github.com/MHA-Team/PTS-Team.git
synced 2026-02-19 20:42:29 +00:00
52 lines
2.3 KiB
Bash
52 lines
2.3 KiB
Bash
#!/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
|
|
################################################################################
|
|
touch /var/plexguide/server.id.stored
|
|
start=$(cat /var/plexguide/server.id)
|
|
stored=$(cat /var/plexguide/server.id.stored)
|
|
|
|
if [ "$start" != "$stored" ]; then
|
|
|
|
tee <<-EOF
|
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
↘️ ESTABLISHING ~ Server's Identification
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
⚠️ WARNING: Use > One Word - All LowerCase & Keep it Simple!
|
|
|
|
EOF
|
|
|
|
# Standby
|
|
read -p '🌏 TYPE Server ID | Press [ENTER]: ' typed </dev/tty
|
|
|
|
if [ "$typed" == "" ]; then
|
|
tee <<-EOF
|
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
⛔️ WARNING! - The Server ID Cannot Be Blank!
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
EOF
|
|
sleep 3
|
|
bash /opt/plexguide/menu/interface/serverid.sh
|
|
exit
|
|
else
|
|
tee <<-EOF
|
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
✅️ PASS: ServerID Set
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
EOF
|
|
|
|
# Prevents From Repeating
|
|
echo "$typed" >/var/plexguide/server.id
|
|
cat /var/plexguide/server.id >/var/plexguide/server.id.stored
|
|
|
|
sleep 3
|
|
fi
|
|
|
|
fi
|