mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-18 14:51:50 +02:00
Update run
This commit is contained in:
@@ -22,7 +22,7 @@ if [ -f /currentip ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Get ip location
|
# Get ip location
|
||||||
COUNTRY=$"(curl -s https://ipinfo.io/"$(cat /vpnip)" | grep country -i -m 1 | cut -d ':' -f 2 |xargs | awk 'gsub(/,$/,x)' || true)"
|
COUNTRY=$(curl -s https://ipinfo.io/$(cat /vpnip) | grep country -i -m 1 | cut -d ':' -f 2 |xargs | awk 'gsub(/,$/,x)' || true)
|
||||||
|
|
||||||
# Inform by message
|
# Inform by message
|
||||||
bashio::log.info "VPN is up and running with ip $(curl -s ipecho.net/plain), based in country : $COUNTRY"
|
bashio::log.info "VPN is up and running with ip $(curl -s ipecho.net/plain), based in country : $COUNTRY"
|
||||||
|
|||||||
Reference in New Issue
Block a user