Alexandre
2023-02-05 06:56:10 +01:00
committed by GitHub
parent 0d1317cd61
commit 11c3a16644

View File

@@ -12,7 +12,8 @@ CONFIG_LOCATION=/config/addons_config/readarr/config.xml
if bashio::config.has_value 'CONFIG_LOCATION'; then
CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')"
# Modify if it is a base directory
if [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)/config.xml"; fi
if [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)"; fi
CONFIG_LOCATION="$CONFIG_LOCATION"/config.xml
fi
if ! grep -q "<UrlBase>/readarr</UrlBase>" "$CONFIG_LOCATION"; then