Update run

This commit is contained in:
Alexandre
2022-05-06 21:26:40 +02:00
committed by GitHub
parent 45f948b225
commit e7bc9f6fdb

View File

@@ -22,7 +22,7 @@ if [ -f /currentip ]; then
fi
# 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
bashio::log.info "VPN is up and running with ip $(curl -s ipecho.net/plain), based in country : $COUNTRY"