mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 21:04:05 +02:00
@@ -10,10 +10,10 @@ CONFIG_LOCATION=/config/addons_config/sonarr/config.xml
|
|||||||
if bashio::config.has_value 'CONFIG_LOCATION'; then
|
if bashio::config.has_value 'CONFIG_LOCATION'; then
|
||||||
CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')"
|
CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')"
|
||||||
# Modify if it is a base directory
|
# 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
|
fi
|
||||||
|
|
||||||
while ! [ -f "$CONFIG_LOCATION"/config.xml ];
|
while ! [ -f "$CONFIG_LOCATION" ];
|
||||||
do
|
do
|
||||||
echo "Waiting for $CONFIG_LOCATION to be created"
|
echo "Waiting for $CONFIG_LOCATION to be created"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
Reference in New Issue
Block a user