Update start.sh

This commit is contained in:
Alexandre
2021-10-22 22:42:57 +02:00
committed by GitHub
parent 7a13149d98
commit 955a7990de

View File

@@ -57,8 +57,6 @@ export WT_EMAIL=$(bashio::config 'WT_EMAIL')
bashio::config.require.ssl bashio::config.require.ssl
if bashio::config.true 'ssl'; then if bashio::config.true 'ssl'; then
bashio::log.info "ssl enabled. If webui don't work, disable ssl or check your certificate paths"
#set variables #set variables
CERTFILE=$(bashio::config 'certfile') CERTFILE=$(bashio::config 'certfile')
@@ -73,12 +71,16 @@ if bashio::config.true 'ssl'; then
#Send env variables #Send env variables
export HTTPS=true export HTTPS=true
export SSL=true export SSL=true
export BASE_URL=$BASE_URL:$(bashio::addon.port 443) BASE_URL=$BASE_URL:$(bashio::addon.port 443)
export BASE_URL="${BASE_URL/http/https}"
#Communication
bashio::log.info "Ssl enabled at path $BASE_URL. If webui don't work, disable ssl or check your certificate paths"
fi fi
######### #########
# INFOS # # INFOS #
######### #########
cd/
./docker-entrypoint.sh ./docker-entrypoint.sh