mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update run
https://github.com/alexbelgium/hassio-addons/issues/1089#issuecomment-1826084589
This commit is contained in:
@@ -18,6 +18,13 @@ if bashio::config.has_value 'CONFIG_LOCATION'; then
|
||||
CONFIG_LOCATION="$CONFIG_LOCATION"/config.xml
|
||||
fi
|
||||
|
||||
# Delete external
|
||||
if ! grep -q "external" "$CONFIG_LOCATION"; then
|
||||
bashio::log.warning "external is set, restarting"
|
||||
sed -i "/external/d" "$CONFIG_LOCATION"
|
||||
bashio::addon.restart
|
||||
fi
|
||||
|
||||
# Set UrlBase
|
||||
if ! grep -q "<UrlBase>$slug</UrlBase>" "$CONFIG_LOCATION" && ! bashio::config.true "ingress_disabled"; then
|
||||
bashio::log.warning "BaseUrl not set properly, restarting"
|
||||
@@ -26,5 +33,11 @@ if ! grep -q "<UrlBase>$slug</UrlBase>" "$CONFIG_LOCATION" && ! bashio::config.t
|
||||
bashio::addon.restart
|
||||
fi
|
||||
|
||||
if bashio::config.true "ingress_disabled"; then
|
||||
bashio::log.info "you can connect at http://homeassistant:8787"
|
||||
else
|
||||
bashio::log.info "you can connect at http://homeassistant:8787/readarr or using ingress"
|
||||
fi
|
||||
|
||||
bashio::log.info "Starting NGinx..."
|
||||
exec nginx
|
||||
|
||||
Reference in New Issue
Block a user