From 2b92fdd1ad3db78d9a61e4fa482fc99c6e41ff7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20L=C3=BCscher?= Date: Wed, 2 Jul 2025 18:00:40 +0200 Subject: [PATCH] fix(setup): hostname -I no longer available on bluefin 42 temporary fix for #149 --- forge.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/forge.sh b/forge.sh index 167623f..326352c 100755 --- a/forge.sh +++ b/forge.sh @@ -9,8 +9,9 @@ export FORGE_POD_NAME_PRE_AMBLE="ublue-os_forge-" export FORGE_POD_NAME_REVERSE_PROXY=${FORGE_POD_NAME_PRE_AMBLE}rvproxy export FORGE_POD_NAME_REGISTRY=${FORGE_POD_NAME_PRE_AMBLE}registry export FORGE_POD_NAME_ANVIL=${FORGE_POD_NAME_PRE_AMBLE}anvil -export FORGE_HOST_IP_ADDRESS=$(hostname -I | awk '{print $1}') - +## TODO: hostname -I no longer working in fedora 42. Find better solution. -> https://github.com/ublue-os/forge/issues/149 +# export FORGE_HOST_IP_ADDRESS=$(hostname -I | awk '{print $1}') +export FORGE_HOST_IP_ADDRESS=$(hostname -i | grep -oE '([0-9]{1,3}\.){3}[0-9]{1,3}' | head -n 1) # Functions function setup {