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 Kong <kongjianjun@gmail.com>
This commit is contained in:
Amos Kong 2020-08-25 07:17:09 +08:00 committed by Amos Kong
parent d8b4195a4f
commit a7f58f9437
1 changed files with 1 additions and 0 deletions

View File

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