mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
Update 99-run.sh
This commit is contained in:
@@ -37,9 +37,9 @@ done
|
|||||||
##################
|
##################
|
||||||
|
|
||||||
if bashio::config.true 'ROOT_URL'; then
|
if bashio::config.true 'ROOT_URL'; then
|
||||||
bashio::log.blue "ROOT_URL set, using value : $(bashio::addon.value 'ROOT_URL')"
|
bashio::log.blue "ROOT_URL set, using value : $(bashio::config 'ROOT_URL')"
|
||||||
else
|
else
|
||||||
ROOT_URL="$PROTOCOL://$(bashio::addon.value 'DOMAIN'):$(bashio::addon.port 3000)"
|
ROOT_URL="$PROTOCOL://$(bashio::config 'DOMAIN'):$(bashio::addon.port 3000)"
|
||||||
bashio::log.blue "ROOT_URL not set, using extrapolated value : $ROOT_URL"
|
bashio::log.blue "ROOT_URL not set, using extrapolated value : $ROOT_URL"
|
||||||
sed -i "/server/a ROOT_URL=$ROOT_URL" "$file"
|
sed -i "/server/a ROOT_URL=$ROOT_URL" "$file"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user