Update run

This commit is contained in:
Alexandre
2023-02-04 17:13:08 +01:00
committed by GitHub
parent d0931cbdf1
commit 6f0e2f09bb

View File

@@ -13,11 +13,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>/sonarr</UrlBase>" "$CONFIG_LOCATION"; then
bashio::log.warning "BaseUrl not set properly, restarting"
sed -i "/UrlBase/d" "$CONFIG_LOCATION"