Alexandre
2023-02-04 17:08:10 +01:00
committed by GitHub
parent e7c5f68bcf
commit 718f009258

View File

@@ -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