mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-25 16:56:04 +02:00
Update run
This commit is contained in:
@@ -6,9 +6,13 @@
|
|||||||
bashio::net.wait_for 7878 localhost 900
|
bashio::net.wait_for 7878 localhost 900
|
||||||
|
|
||||||
# Set base url
|
# Set base url
|
||||||
CONFIG_LOCATION=/config/addons_config/radarr/config.xml
|
CONFIG_LOCATION=/config/addons_config/sonarr/config.xml
|
||||||
sed -i "/UrlBase/d" "$CONFIG_LOCATION"
|
if ! grep -q "<UrlBase>/radarr</UrlBase>" "$CONFIG_LOCATION"; then
|
||||||
sed -i "/<Config>/a <UrlBase>\/radarr<\/UrlBase>" "$CONFIG_LOCATION"
|
bashio::log.warning "BaseUrl not set properly, restarting"
|
||||||
|
sed -i "/UrlBase/d" "$CONFIG_LOCATION"
|
||||||
|
sed -i "/<Config>/a <UrlBase>\/radarr<\/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