Alexandre
2023-02-04 17:07:00 +01:00
committed by GitHub
parent 3e2d789c41
commit 4b7c0d28a6

View File

@@ -10,10 +10,10 @@ CONFIG_LOCATION=/config/addons_config/radarr/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