mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Avoid ingress if no HA
This commit is contained in:
@@ -20,7 +20,9 @@ if ! bashio::supervisor.ping 2>/dev/null; then
|
||||
-e 's/bashio::config[[:space:]]*["'"'"']\([^"'"'"']*\)["'"'"']/\${\1}/g' \
|
||||
-e 's/bashio::addon.port[[:space:]]*["'"'"']\([^"'"'"']*\)["'"'"']/echo \1/g' \
|
||||
-e 's/bashio::services[[:space:]]*["'"'"']\([^"'"'"']*\)["'"'"']/\${\1}/g' \
|
||||
-e 's/bashio::addon.ip_address/\${IP_ADDRESS}/g' "$scripts" || true
|
||||
-e 's/bashio::addon.ingress_port/\${INGRESS_PORT}/g' \
|
||||
-e 's/bashio::addon.ip_address/\${IP_ADDRESS}/g' \
|
||||
-e 's/bashio::addon.ingress_entry/\${INGRESS_ENTRY}/g' "$scripts" || true
|
||||
done
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user