mirror of
https://github.com/hcengineering/huly-selfhost.git
synced 2026-09-11 12:17:51 +02:00
fix: use different method to get ip
Signed-off-by: veryCrunchy <me@verycrunchy.dev>
This commit is contained in:
@@ -17,7 +17,7 @@ while true; do
|
||||
prompt_value="<IP>"
|
||||
fi
|
||||
read -p "Enter the host address (domain name or IP) [${prompt_type}: ${prompt_value}]: " input
|
||||
_HOST_ADDRESS="${input:-${HOST_ADDRESS:-$(hostname -i)}}"
|
||||
_HOST_ADDRESS="${input:-${HOST_ADDRESS:-$(curl -s https://checkip.amazonaws.com)}}"
|
||||
break
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user