From 718f009258acdad2c217f6c3df0b7cb7be6188e7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 4 Feb 2023 17:08:10 +0100 Subject: [PATCH] Correct https://github.com/alexbelgium/hassio-addons/issues/688 --- readarr/rootfs/etc/services.d/nginx/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readarr/rootfs/etc/services.d/nginx/run b/readarr/rootfs/etc/services.d/nginx/run index 0ed4fcc72..b94d597dc 100644 --- a/readarr/rootfs/etc/services.d/nginx/run +++ b/readarr/rootfs/etc/services.d/nginx/run @@ -12,10 +12,10 @@ CONFIG_LOCATION=/config/addons_config/readarr/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