Add baseurl

This commit is contained in:
Alexandre
2023-02-04 07:23:37 +01:00
committed by GitHub
parent cac9a4a60e
commit 8d32f180af

View File

@@ -5,6 +5,10 @@
# Wait for transmission to become available
bashio::net.wait_for 8989 localhost 900
bashio::log.info "Starting NGinx..."
# Set base url
CONFIG_LOCATION=/config/addons_config/sonarr/config.xml
sed -i "/UrlBase/d" "$CONFIG_LOCATION"
sed -i "/<Config>/a <UrlBase>\/sonarr<\/UrlBase>" "$CONFIG_LOCATION"
bashio::log.info "Starting NGinx..."
exec nginx