From 01fd13ec8304cde0ed3a0d90cee4c12df5bdec87 Mon Sep 17 00:00:00 2001 From: Gyorgy Berenyi Date: Tue, 3 Dec 2024 16:40:39 +0000 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6ae5c37..82ae253 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,7 +2,7 @@ DOMAIN=$HOMEASSISTANT_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);