From 5535f80b5cbfbfef7df6faa1eeb53b6bbdc29368 Mon Sep 17 00:00:00 2001 From: Ping Xiao Date: Tue, 24 Oct 2023 13:56:41 +0800 Subject: [PATCH] TD-26791: update script --- packaging/tools/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packaging/tools/install.sh b/packaging/tools/install.sh index f731e8c280..99c3fade5e 100755 --- a/packaging/tools/install.sh +++ b/packaging/tools/install.sh @@ -378,8 +378,8 @@ function add_newHostname_to_hosts() { } function set_hostname() { - echo -e -n "${GREEN}Enter the public accessible IP address or fully qualified domain name TDengine will expose to users or applications (must not be 'localhost') :${NC}" - read newHostname + echo -e -n "${GREEN}Host name or IP (assigned to this machine) which can be accessed by your tools or apps: (must not be 'localhost') :${NC}" + read -e -p "" -i "$(hostname)" newHostname while true; do if [ -z "$newHostname" ]; then newHostname=$(hostname) @@ -387,8 +387,8 @@ function set_hostname() { elif [ "$newHostname" != "localhost" ]; then break else - echo -e -n "${GREEN}Enter the public accessible IP address or fully qualified domain name TDengine will expose to users or applications (must not be 'localhost') :${NC}" - read newHostname + echo -e -n "${GREEN}Host name or IP (assigned to this machine) which can be accessed by your tools or apps: (must not be 'localhost') :${NC}" + read -e -p "" -i "$(hostname)" newHostname fi done