TD-26791: update script
This commit is contained in:
parent
7e3285e9e4
commit
5535f80b5c
|
@ -378,8 +378,8 @@ function add_newHostname_to_hosts() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_hostname() {
|
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}"
|
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 newHostname
|
read -e -p "" -i "$(hostname)" newHostname
|
||||||
while true; do
|
while true; do
|
||||||
if [ -z "$newHostname" ]; then
|
if [ -z "$newHostname" ]; then
|
||||||
newHostname=$(hostname)
|
newHostname=$(hostname)
|
||||||
|
@ -387,8 +387,8 @@ function set_hostname() {
|
||||||
elif [ "$newHostname" != "localhost" ]; then
|
elif [ "$newHostname" != "localhost" ]; then
|
||||||
break
|
break
|
||||||
else
|
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}"
|
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 newHostname
|
read -e -p "" -i "$(hostname)" newHostname
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue