Skip to content

Commit

Permalink
Update start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 10, 2019
1 parent 1438355 commit dc3e0b1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions menu/start/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ varstart() {
docker --version | head -n +1 | awk '{print $3'} | sed 's/,$//' >$filevg/pg.docker
lsb_release -si >$filevg/pg.os

## stupid line cat /etc/os-release | head -n +5 | tail -n +5 | cut -d'"' -f2 >$filevg/pg.os

file="/var/plexguide/gce.false"
if [ -e "$file" ]; then echo "No" >$filevg/pg.gce; else echo "Yes" >$filevg/pg.gce; fi

Expand All @@ -115,19 +113,19 @@ varstart() {
pgnumber=$(cat /var/plexguide/pg.number)

# Declare Traefik Deployed Docker State
if [[ $(docker ps | grep "traefik") == "" ]]; then
if [[ $(docker ps --format {{.Names}}| grep "traefik") != "traefik" ]]; then
traefik="NOT DEPLOYED"
echo "Not Deployed" >$filevg/pg.traefik
else
traefik="DEPLOYED"
echo "Deployed" >$filevg/pg.traefik
fi

if [[ $(docker ps | grep "oauth") == "" ]]; then
traefik="NOT DEPLOYED"
if [[ $(docker ps --format {{.Names}}| grep "oauth") != "oauth" ]]; then
oauth="NOT DEPLOYED"
echo "Not Deployed" >$filevg/pg.auth
else
traefik="DEPLOYED"
oauth="DEPLOYED"
echo "Deployed" >$filevg/pg.oauth
fi

Expand Down

0 comments on commit dc3e0b1

Please sign in to comment.