Add "Install Complete" Message (#190)

* Add install complete message

* Get interface ip
This commit is contained in:
Matheson Steplock 2022-02-06 14:20:37 -05:00 committed by GitHub
parent 3200e99888
commit 886b7efb30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,10 @@ while ! ping -c 1 -W 1 ${URL_VERSION_HOST}; do
sleep 2
done
# Get primary network interface
PRIMARY_INTERFACE=$(ip route | awk '/^default/ { print $5 }')
IP_ADDRESS=$(ip -4 addr show dev "$PRIMARY_INTERFACE" | awk '/inet / { sub("/.*", "", $2); print $2 }')
case $ARCH in
"i386" | "i686")
MACHINE=${MACHINE:=qemux86}
@ -127,3 +131,7 @@ systemctl start hassio-supervisor.service
info "Installing the 'ha' cli"
chmod a+x "${PREFIX}/bin/ha"
info "Within a few minutes you will be able to reach Home Assistant at:"
info "http://homeassistant.local:8123 or using the IP address of your"
info "machine: http://${IP_ADDRESS}:8123"