Files
PTS-Team/menu/pgbox/select.sh
2019-12-01 00:22:15 +01:00

79 lines
2.8 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
################################################################################
GCEtest(){
gce=$(cat /var/plexguide/pg.server.deploy)
if [[ $gce == "feeder" ]]; then
mainstart2
else mainstart1; fi
}
mainstart1() {
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 Box Apps Interface Selection
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💬 PTS Box installs a series of Core and Community applications!
[1] PTS : Core
[2] PTS : Community
--------------------------------
[3] Apps : Personal Forks
[4] Apps : Removal
[Z] Exit
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
# Standby
read -p '↘️ Type Number | Press [ENTER]: ' typed </dev/tty
case $typed in
1) bash /opt/plexguide/menu/pgbox/core/core.sh ;;
2) bash /opt/plexguide/menu/pgbox/community/community.sh ;;
3) bash /opt/plexguide/menu/pgbox/personal/personal.sh ;;
4) bash /opt/plexguide/menu/pgbox/remove/removal.sh ;;
z) exit ;;
Z) exit ;;
*) GCEtest ;;
esac
}
mainstart2() {
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 GCE APPS optimized Apps
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[1] PTS GCE optimized Apps : GCE APPS
[2] Apps : Removal
[Z] Exit
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
read -p '↘️ Type Number | Press [ENTER]: ' typed </dev/tty
case $typed in
1) bash /opt/plexguide/menu/pgbox/gce/gcecore.sh ;;
2) bash /opt/plexguide/menu/pgbox/remove/removal.sh ;;
z) exit ;;
Z) exit ;;
*) GCEtest ;;
esac
}
GCEtest