Alexandre
2023-02-04 17:11:54 +01:00
committed by GitHub
parent 5555d6ecaf
commit a0087dd7a2

View File

@@ -15,12 +15,6 @@ if bashio::config.has_value 'CONFIG_LOCATION'; then
if [ -f "$CONFIG_LOCATION" ]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)/config.xml"; fi
fi
while ! [ -f "$CONFIG_LOCATION" ];
do
echo "Waiting for $CONFIG_LOCATION to be created"
sleep 1
done
if ! grep -q "<UrlBase>/readarr</UrlBase>" "$CONFIG_LOCATION"; then
bashio::log.warning "BaseUrl not set properly, restarting"
sed -i "/UrlBase/d" "$CONFIG_LOCATION"