From 648f90a3040c17c0572d4d940b3784745b391551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=83rcziem=20=E2=84=A2?= <118485377+spalencsar@users.noreply.github.com> Date: Mon, 6 Oct 2025 11:14:01 +0200 Subject: [PATCH] Fix IP address detection in installation summary for cross-distribution compatibility - Replace hostname -I with ip addr parsing in show_installation_summary - hostname -I not available on all distributions --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 5394530..6bb2e2d 100644 --- a/setup.sh +++ b/setup.sh @@ -494,7 +494,7 @@ run_installation() { # Installation summary show_installation_summary() { local ip_address - ip_address=$(hostname -I | awk '{print $1}') + ip_address=$(ip addr show | grep 'inet ' | grep -v '127.0.0.1' | head -1 | awk '{print $2}' | cut -d/ -f1) local user_home if [[ -n "${SUDO_USER:-}" ]]; then user_home=$(eval echo "~${SUDO_USER}")