Files
PTS-Team/menu/pgbox/select.sh
thesammykins b85d46105c Revert "Merge pull request #31 from Pandaura/dev"
This reverts commit 619678b60b, reversing
changes made to 9ec20a91e5.
2021-11-03 08:42:27 +11:00

81 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
[5] Apps : Auto Update
[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 ;;
5) bash /opt/plexguide/menu/pgbox/customparts/autobackup.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