mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-20 14:29:14 +02:00
Update start.sh
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user