From 25ced73caf91c550aa4d7266304e7c068546978c Mon Sep 17 00:00:00 2001 From: zyyang Date: Wed, 4 Nov 2020 11:27:59 +0800 Subject: [PATCH] [TD-1933]: input fqdn and email during rpm package install --- packaging/tools/post.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packaging/tools/post.sh b/packaging/tools/post.sh index d91daaa5c4..569f316ff3 100755 --- a/packaging/tools/post.sh +++ b/packaging/tools/post.sh @@ -121,8 +121,11 @@ function install_config() { echo -e -n "${GREEN}Enter FQDN:port (like h1.taosdata.com:6030) of an existing TDengine cluster node to join${NC}" echo echo -e -n "${GREEN}OR leave it blank to build one${NC}:" - read firstEp - while true; do + #read firstEp + if exec < /dev/tty; then + read firstEp; + fi + while true; do if [ ! -z "$firstEp" ]; then # check the format of the firstEp #if [[ $firstEp == $FQDN_PATTERN ]]; then -- GitLab