From c3d59346a61398bf9aec563fa7685b6ff6c5df09 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 17 Mar 2023 19:47:00 +0100 Subject: [PATCH] Update run --- autobrr/rootfs/etc/services.d/nginx/run | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autobrr/rootfs/etc/services.d/nginx/run b/autobrr/rootfs/etc/services.d/nginx/run index c22fb7681..033a36a65 100644 --- a/autobrr/rootfs/etc/services.d/nginx/run +++ b/autobrr/rootfs/etc/services.d/nginx/run @@ -5,7 +5,7 @@ # Set variables slug=autobrr port=7474 -CONFIG_LOCATION=/config/addons_config/"$slug"/config.xml +CONFIG_LOCATION=/config/addons_config/"$slug"/config.toml # Wait for transmission to become available bashio::net.wait_for "$port" localhost 900 @@ -14,14 +14,14 @@ if bashio::config.has_value 'CONFIG_LOCATION'; then CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')" # Modify if it is a base directory if [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)"; fi - CONFIG_LOCATION="$CONFIG_LOCATION"/config.xml + CONFIG_LOCATION="$CONFIG_LOCATION"/config.toml fi # Set UrlBase if ! grep -q "/hassioautobrr" "$CONFIG_LOCATION" && ! bashio::config.true "ingress_disabled"; then bashio::log.warning "BaseUrl not set properly, restarting" - sed -i "/UrlBase/d" "$CONFIG_LOCATION" - sed -i "//a \/hassioautobrr<\/UrlBase>" "$CONFIG_LOCATION" + sed -i "/baseUrl/d" "$CONFIG_LOCATION" + sed -i "/# Base url/a baseUrl = \"/hassioautobrr/\"" "$CONFIG_LOCATION" bashio::addon.restart fi