提交 a7f58f94 编写于 作者: Amos_沧海桑田's avatar Amos_沧海桑田 提交者: Amos Kong

install.sh: create empty history file after installation

There is a error message in first use of taos, because the history
file doesn't exist.

This patch tried to create an empty history file after installation,
then users won't see the error message.

| [root@045a9307c53a ~]# taos
|
| Welcome to the TDengine shell from Linux, Client Version:2.0.1.1
| Copyright (c) 2017 by TAOS Data, Inc. All rights reserved.
|
| Failed to open file /root/.taos_history
| taos>
Signed-off-by: Amos_沧海桑田's avatarAmos Kong <kongjianjun@gmail.com>
上级 d8b4195a
......@@ -713,6 +713,7 @@ function install_TDengine() {
echo
echo -e "\033[44;32;1mTDengine client is installed successfully!${NC}"
fi
touch ~/.taos_history
rm -rf $(tar -tf taos.tar.gz)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册