mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update run
This commit is contained in:
@@ -7,8 +7,12 @@ bashio::net.wait_for 8989 localhost 900
|
|||||||
|
|
||||||
# Set base url
|
# Set base url
|
||||||
CONFIG_LOCATION=/config/addons_config/sonarr/config.xml
|
CONFIG_LOCATION=/config/addons_config/sonarr/config.xml
|
||||||
sed -i "/UrlBase/d" "$CONFIG_LOCATION"
|
if ! grep -q "<UrlBase>/sonarr</UrlBase>" "$CONFIG_LOCATION"; then
|
||||||
sed -i "/<Config>/a <UrlBase>\/sonarr<\/UrlBase>" "$CONFIG_LOCATION"
|
bashio::log.warning "BaseUrl not set properly, restarting"
|
||||||
|
sed -i "/UrlBase/d" "$CONFIG_LOCATION"
|
||||||
|
sed -i "/<Config>/a <UrlBase>\/sonarr<\/UrlBase>" "$CONFIG_LOCATION"
|
||||||
|
bashio::addon.restart
|
||||||
|
fi
|
||||||
|
|
||||||
bashio::log.info "Starting NGinx..."
|
bashio::log.info "Starting NGinx..."
|
||||||
exec nginx
|
exec nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user