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