mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-28 10:16:06 +02:00
Update run
This commit is contained in:
@@ -6,11 +6,11 @@
|
|||||||
bashio::net.wait_for 8080 localhost 900
|
bashio::net.wait_for 8080 localhost 900
|
||||||
|
|
||||||
if [ -f /currentip ]; then
|
if [ -f /currentip ]; then
|
||||||
if [[ "$(curl ipecho.net/plain)" = "$(cat /currentip)" ]]; then
|
if [[ "$(curl -s ipecho.net/plain)" = "$(cat /currentip)" ]]; then
|
||||||
bashio::log.fatal "VPN is not properly configured. Your ip is exposed. Please fix this, or do not use the vpn alt mode"
|
bashio::log.fatal "VPN is not properly configured. Your ip is exposed. Please fix this, or do not use the vpn alt mode"
|
||||||
bashio::exit.nok
|
bashio::exit.nok
|
||||||
else
|
else
|
||||||
bashio::log "VPN is up and running with ip $(curl ipecho.net/plain)"
|
bashio::log "VPN is up and running with ip $(curl -s ipecho.net/plain)"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user