Merge pull request #4642 from nktnet1/arch-linux-inetutils

fix: hostname -I not supported on Arch Linux
This commit is contained in:
Andras Bacsai
2025-01-07 14:37:37 +01:00
committed by GitHub

View File

@@ -542,7 +542,7 @@ echo -e "You can access Coolify through your Public IP: http://$(curl -4s https:
set +e
DEFAULT_PRIVATE_IP=$(ip route get 1 | sed -n 's/^.*src \([0-9.]*\) .*$/\1/p')
PRIVATE_IPS=$(hostname -I)
PRIVATE_IPS=$(hostname -I 2>/dev/null || ip -o addr show scope global | awk '{print $4}' | cut -d/ -f1)
set -e
if [ -n "$PRIVATE_IPS" ]; then