Skip to content

Commit

Permalink
Update gcecore.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored Dec 3, 2019
1 parent 7b24e7e commit 3891065
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions menu/pgbox/gce/gcecore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,14 @@ initial() {
touch /var/plexguide/app.list
touch /var/plexguide/pgbox.buildup

mkdir -p /opt/coreapps
folder && ansible-playbook /opt/plexguide/menu/pgbox/gce/gcecore.yml >/dev/null 2>&1

if [ "$boxversion" == "official" ]; then
ansible-playbook /opt/plexguide/menu/pgbox/gce/gcecore.yml
else ansible-playbook /opt/plexguide/menu/pgbox/gce/gcecore.yml; fi

echo ""
echo "💬 Pulling Update Files - Please Wait"
file="/opt/coreapps/place.holder"
waitvar=0
while [ "$waitvar" == "0" ]; do
sleep .5
if [ -e "$file" ]; then waitvar=1; fi
done

}

question1() {
Expand All @@ -81,7 +74,6 @@ question1() {
echo "" >>/opt/coreapps/apps/$p.yml
echo "##PG-Core" >>/opt/coreapps/apps/$p.yml

mkdir -p /opt/mycontainers
touch /opt/appdata/plexguide/rclone.conf
done </var/plexguide/app.list
touch /var/plexguide/core.app
Expand Down Expand Up @@ -135,6 +127,7 @@ $notrun
$buildup
[A] Install
[Z] Exit
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Expand Down Expand Up @@ -249,6 +242,10 @@ start() {
question1
}

folder() {
mkdir -p /opt/coreapps
}

# FUNCTIONS END ##############################################################
echo "" >/tmp/output.info
start

0 comments on commit 3891065

Please sign in to comment.