diff --git a/readarr/rootfs/etc/services.d/nginx/run b/readarr/rootfs/etc/services.d/nginx/run index 81e47966d..922f7eb41 100644 --- a/readarr/rootfs/etc/services.d/nginx/run +++ b/readarr/rootfs/etc/services.d/nginx/run @@ -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 "$slug" "$CONFIG_LOCATION" && ! bashio::config.true "ingress_disabled"; then bashio::log.warning "BaseUrl not set properly, restarting" @@ -26,5 +33,11 @@ if ! grep -q "$slug" "$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