From 386a88ce5bbf4c151c5401699785a2b83cb46b31 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 4 Feb 2023 17:09:26 +0100 Subject: [PATCH] Correct https://github.com/alexbelgium/hassio-addons/issues/688 --- sonarr/rootfs/etc/services.d/nginx/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonarr/rootfs/etc/services.d/nginx/run b/sonarr/rootfs/etc/services.d/nginx/run index d9b2bc5e2..dec5cc41e 100644 --- a/sonarr/rootfs/etc/services.d/nginx/run +++ b/sonarr/rootfs/etc/services.d/nginx/run @@ -10,10 +10,10 @@ CONFIG_LOCATION=/config/addons_config/sonarr/config.xml if bashio::config.has_value 'CONFIG_LOCATION'; then CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')" # Modify if it is a base directory - if [ -f "$CONFIG_LOCATION" ]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)"; fi + if [ -f "$CONFIG_LOCATION" ]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)/config.xml"; fi fi -while ! [ -f "$CONFIG_LOCATION"/config.xml ]; +while ! [ -f "$CONFIG_LOCATION" ]; do echo "Waiting for $CONFIG_LOCATION to be created" sleep 1