mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-04 16:15:12 +02:00
Update 50-disable_ingress.sh
This commit is contained in:
@@ -14,7 +14,7 @@ if bashio::config.true "ingress_disabled"; then
|
|||||||
if bashio::config.has_value 'CONFIG_LOCATION'; then
|
if bashio::config.has_value 'CONFIG_LOCATION'; then
|
||||||
CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')"
|
CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')"
|
||||||
# Modify if it is a base directory
|
# Modify if it is a base directory
|
||||||
if [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)"; fi
|
if [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname "$CONFIG_LOCATION")"; fi
|
||||||
CONFIG_LOCATION="$CONFIG_LOCATION"/config.xml
|
CONFIG_LOCATION="$CONFIG_LOCATION"/config.xml
|
||||||
if grep -q "UrlBase" "$CONFIG_LOCATION" || true; then
|
if grep -q "UrlBase" "$CONFIG_LOCATION" || true; then
|
||||||
bashio::log.warning "BaseUrl removed, restarting"
|
bashio::log.warning "BaseUrl removed, restarting"
|
||||||
|
|||||||
Reference in New Issue
Block a user