Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Sep 7, 2019
1 parent 4669bda commit f59b1d0
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions menu/functions/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pginstall() {
fi

portainer
pgui
# pgui
core motd &>/dev/null &
core hetzner &>/dev/null &
core gcloud
Expand Down Expand Up @@ -283,34 +283,34 @@ motd() {
ansible-playbook /opt/plexguide/menu/motd/motd.yml
}

mountcheck() {
bash /opt/plexguide/menu/pgcloner/solo/pgui.sh
ansible-playbook /opt/pgui/pgui.yml
ansible-playbook /opt/plexguide/menu/pgui/mcdeploy.yml
}
# mountcheck() {
# bash /opt/plexguide/menu/pgcloner/solo/pgui.sh
# ansible-playbook /opt/pgui/pgui.yml
# ansible-playbook /opt/plexguide/menu/pgui/mcdeploy.yml
# }

localspace() {
ansible-playbook /opt/pgui/pgui.yml
ansible-playbook /opt/plexguide/menu/pgui/localspace.yml
# localspace() {
# ansible-playbook /opt/pgui/pgui.yml
# ansible-playbook /opt/plexguide/menu/pgui/localspace.yml

tee <<-EOF
# tee <<-EOF

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
↘️ PG User Interface (PGUI) Installed / Updated
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# ↘️ PG User Interface (PGUI) Installed / Updated
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

INFORMATION: PGUI is a simple interface that provides information,
warnings, and stats that will assist both yourself and tech support!
To turn this off, goto settings and turn off/on the PG User Interface!
# INFORMATION: PGUI is a simple interface that provides information,
# warnings, and stats that will assist both yourself and tech support!
# To turn this off, goto settings and turn off/on the PG User Interface!

VISIT:
https://pgui.yourdomain.com | http://pgui.domain.com:8555 | ipv4:8555
# VISIT:
# https://pgui.yourdomain.com | http://pgui.domain.com:8555 | ipv4:8555

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
read -p 'Acknowledge Info | Press [ENTER] ' typed </dev/tty
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# EOF
# read -p 'Acknowledge Info | Press [ENTER] ' typed </dev/tty

}
# }

newinstall() {
rm -rf /var/plexguide/pg.exit 1>/dev/null 2>&1
Expand Down Expand Up @@ -359,20 +359,20 @@ pgshield() { if [ ! -e "/opt/pgshield/place.holder" ]; then
ansible-playbook "/opt/plexguide/menu/pgcloner/corev2/primary.yml"
fi; }

pgui() {
file="/var/plexguide/pgui.switch"
if [ ! -e "$file" ]; then echo "On" >/var/plexguide/pgui.switch; fi
# pgui() {
# file="/var/plexguide/pgui.switch"
# if [ ! -e "$file" ]; then echo "On" >/var/plexguide/pgui.switch; fi

pguicheck=$(cat /var/plexguide/pgui.switch)
if [[ "$pguicheck" == "On" ]]; then
# pguicheck=$(cat /var/plexguide/pgui.switch)
# if [[ "$pguicheck" == "On" ]]; then

dstatus=$(docker ps --format '{{.Names}}' | grep "pgui")
if [ "$dstatus" != "pgui" ]; then
bash /opt/plexguide/menu/pgcloner/solo/pgui.sh
ansible-playbook /opt/pgui/pgui.yml
fi
fi
}
# dstatus=$(docker ps --format '{{.Names}}' | grep "pgui")
# if [ "$dstatus" != "pgui" ]; then
# bash /opt/plexguide/menu/pgcloner/solo/pgui.sh
# ansible-playbook /opt/pgui/pgui.yml
# fi
# fi
# }

pythonstart() {

Expand Down

0 comments on commit f59b1d0

Please sign in to comment.