From 6fe8c7d5885d9032f8a0d227a67cbb6bd22f8195 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 2 Aug 2021 13:46:04 +0200 Subject: [PATCH] Update run.sh --- joal/rootfs/run.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/joal/rootfs/run.sh b/joal/rootfs/run.sh index c38df1e3d..535a45cc0 100644 --- a/joal/rootfs/run.sh +++ b/joal/rootfs/run.sh @@ -106,9 +106,13 @@ ln -sf /config/joal/config.json /data/joal/config.json # AUTOMATIC INGRESS # ##################### - INGRESSURL=$(bashio::addon.ingress_url) +if bashio::config.has_value 'ingress_url'; then + INGRESSURL=$(bashio::config 'ingress_url') sed -i "s|/ui/|/ui?ui_credentials=%7B%22host%22%3A%22${INGRESSURL}%22%2C%22port%22%3A%228123%22%2C%22pathPrefix%22%3A%22${UIPATH}%22%2C%22secretToken%22%3A%22${TOKEN}%22%7D|g" /etc/nginx/servers/ingress.conf bashio::log.info "Ingress url set. Auto connection activated." +else + bashio::log.info "Ingress url not set. Connection must be done manually." +fi ############### # LAUNCH APPS #