Merge pull request #23382 from taosdata/packaging/TD-26791

TD-26791: update script
This commit is contained in:
Alex Duan 2023-10-24 14:04:44 +08:00 committed by GitHub
commit a27b410a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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