mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
15 lines
450 B
Plaintext
15 lines
450 B
Plaintext
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
# ==============================================================================
|
|
|
|
# Wait for transmission to become available
|
|
bashio::net.wait_for 8989 localhost 900
|
|
|
|
# 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
|