Alexandre
2023-02-04 17:09:26 +01:00
committed by GitHub
parent 23a590caaf
commit 386a88ce5b

View File

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