Skip to content

Commit

Permalink
use portainer cname if set
Browse files Browse the repository at this point in the history
  • Loading branch information
LooseSeal2 committed Jul 21, 2019
1 parent 595ef88 commit 57ad45a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion menu/pgui/mountcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ while true; do
##### Warning for Bad Traefik Deployment - message.c is tied to traefik showing a status! Do not change unless you know what your doing
touch /opt/appdata/plexguide/traefik.check
domain=$(cat /var/plexguide/server.domain)
wget -q "https://portainer.${domain}" -O "/opt/appdata/plexguide/traefik.check"

cname="portainer"
if [[ -f "/var/plexguide/portainer.cname" ]]; then
cname=$(cat "/var/plexguide/portainer.cname")
fi

wget -q "https://${cname}.${domain}" -O "/opt/appdata/plexguide/traefik.check"
if [[ $(cat /opt/appdata/plexguide/traefik.check) == "" && $(docker ps --format '{{.Names}}' | grep traefik) == "traefik" ]]; then
echo "Traefik is Not Deployed Properly! Cannot Reach the Portainer SubDomain!" >/opt/appdata/plexguide/emergency/message.c
else
Expand Down

0 comments on commit 57ad45a

Please sign in to comment.