From be1b5f48db413b0c38499092747931bfeaafd42b Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 28 Dec 2022 16:16:10 +0100 Subject: [PATCH] Update 99-run.sh --- webtrees/rootfs/etc/cont-init.d/99-run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webtrees/rootfs/etc/cont-init.d/99-run.sh b/webtrees/rootfs/etc/cont-init.d/99-run.sh index 8fea753f3..13fdbb8c0 100755 --- a/webtrees/rootfs/etc/cont-init.d/99-run.sh +++ b/webtrees/rootfs/etc/cont-init.d/99-run.sh @@ -6,7 +6,8 @@ # GLOBAL VARIABLES # #################### -export BASE_URL=$(bashio::config 'BASE_URL'):$(bashio::addon.port 80) +BASE_URL=$(bashio::config 'BASE_URL'):$(bashio::addon.port 80) +export BASE_URL="${BASE_URL/https:/http:}" #export LANG=$(bashio::config 'LANG') ############## @@ -78,7 +79,7 @@ if bashio::config.true 'ssl'; then export HTTPS=true export SSL=true export HTTPS_REDIRECT=true - BASE_URL="$BASE_URL":$(bashio::addon.port 443) + BASE_URL=$(bashio::config 'BASE_URL'):$(bashio::addon.port 443) export BASE_URL="${BASE_URL/http:/https:}" #Communication