mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-28 08:41:44 +00:00
Update run
This commit is contained in:
1 parent
c18a37a38e
commit
4eca222b77
1 file changed
+6
@@ -7,6 +7,12 @@ bashio::net.wait_for 7878 localhost 900
|
|||||||
|
|
||||||
# Set base url
|
# Set base url
|
||||||
CONFIG_LOCATION=/config/addons_config/sonarr/config.xml
|
CONFIG_LOCATION=/config/addons_config/sonarr/config.xml
|
||||||
|
while ! [ -f "$CONFIG_LOCATION" ];
|
||||||
|
do
|
||||||
|
echo "Waiting for $CONFIG_LOCATION to be created"
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
if ! grep -q "<UrlBase>/radarr</UrlBase>" "$CONFIG_LOCATION"; then
|
if ! grep -q "<UrlBase>/radarr</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