mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update run
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user