mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-27 02:44:05 +02:00
@@ -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
|
if [ -f "$CONFIG_LOCATION" ]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)/config.xml"; fi
|
||||||
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
|
if ! grep -q "<UrlBase>/readarr</UrlBase>" "$CONFIG_LOCATION"; then
|
||||||
bashio::log.warning "BaseUrl not set properly, restarting"
|
bashio::log.warning "BaseUrl not set properly, restarting"
|
||||||
sed -i "/UrlBase/d" "$CONFIG_LOCATION"
|
sed -i "/UrlBase/d" "$CONFIG_LOCATION"
|
||||||
|
|||||||
Reference in New Issue
Block a user