From 16931942b964597546ae377612c6137d53b38390 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 27 Jul 2026 19:41:16 +0200 Subject: [PATCH] Fix Bazarr base_url guard scope --- bazarr/rootfs/etc/services.d/nginx/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/rootfs/etc/services.d/nginx/run b/bazarr/rootfs/etc/services.d/nginx/run index 59d20fe581..e434541bf6 100644 --- a/bazarr/rootfs/etc/services.d/nginx/run +++ b/bazarr/rootfs/etc/services.d/nginx/run @@ -15,7 +15,7 @@ bashio::net.wait_for "$port" localhost 900 if [ -f "$CONFIG_LOCATION" ]; then if ! bashio::config.true "ingress_disabled"; then if ! bashio::config.has_value "connection_mode" || [ "$(bashio::config 'connection_mode')" != "noingress_auth" ]; then - if ! grep -q "base_url: /$slug" "$CONFIG_LOCATION"; then + if ! sed -n "/^general:/,/^[^ ]/ { /^ base_url: \/$slug$/p; }" "$CONFIG_LOCATION" | grep -q .; then bashio::log.warning "BaseUrl not set properly, restarting" # Must start with / for Flask blueprint registration. Scoped to # the general: block only -- config.yaml also carries a base_url