diff --git a/entrypoint.sh b/entrypoint.sh index ae228ec..1f3e1ce 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,7 +2,7 @@ HOMEASSISTANT_DOMAIN="https://$DOMAIN"; SELECTOR=$HOMEASSISTANT -HOMEASSISTANT_IP=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d '/' -f1) +HOMEASSISTANT_IP=$(hostname -i | awk '{print $1}') HOST_FILE=/etc/system/data/dns/hosts.local; EXISTS=$(grep -w -F $SELECTOR $HOST_FILE);