Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
31828ae3
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
31828ae3
编写于
4月 04, 2023
作者:
A
Alex Duan
浏览文件
操作
浏览文件
下载
差异文件
Merge branch '3.0' into test/TD-22830-3.0
上级
3f694e38
8eb6cff7
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
164 addition
and
143 deletion
+164
-143
cmake/taostools_CMakeLists.txt.in
cmake/taostools_CMakeLists.txt.in
+1
-1
docs/zh/12-taos-sql/20-keywords.md
docs/zh/12-taos-sql/20-keywords.md
+1
-1
packaging/cfg/taosd.service
packaging/cfg/taosd.service
+1
-1
packaging/tools/install.sh
packaging/tools/install.sh
+95
-92
packaging/tools/install_client.sh
packaging/tools/install_client.sh
+8
-7
packaging/tools/makeclient.sh
packaging/tools/makeclient.sh
+12
-6
packaging/tools/makepkg.sh
packaging/tools/makepkg.sh
+12
-10
packaging/tools/remove.sh
packaging/tools/remove.sh
+23
-18
packaging/tools/remove_client.sh
packaging/tools/remove_client.sh
+11
-7
未找到文件。
cmake/taostools_CMakeLists.txt.in
浏览文件 @
31828ae3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# taos-tools
# taos-tools
ExternalProject_Add(taos-tools
ExternalProject_Add(taos-tools
GIT_REPOSITORY https://github.com/taosdata/taos-tools.git
GIT_REPOSITORY https://github.com/taosdata/taos-tools.git
GIT_TAG
d194dc9
GIT_TAG
273a3fe
SOURCE_DIR "${TD_SOURCE_DIR}/tools/taos-tools"
SOURCE_DIR "${TD_SOURCE_DIR}/tools/taos-tools"
BINARY_DIR ""
BINARY_DIR ""
#BUILD_IN_SOURCE TRUE
#BUILD_IN_SOURCE TRUE
...
...
docs/zh/12-taos-sql/20-keywords.md
浏览文件 @
31828ae3
...
@@ -269,7 +269,7 @@ description: TDengine 保留关键字的详细列表
...
@@ -269,7 +269,7 @@ description: TDengine 保留关键字的详细列表
-
SPLIT
-
SPLIT
-
STABLE
-
STABLE
-
STABLES
-
STABLES
-
STAR
-
STAR
T
-
STATE
-
STATE
-
STATE_WINDOW
-
STATE_WINDOW
-
STATEMENT
-
STATEMENT
...
...
packaging/cfg/taosd.service
浏览文件 @
31828ae3
[Unit]
[Unit]
Description
=
TDengine
server service
Description
=
server service
After
=
network-online.target
After
=
network-online.target
Wants
=
network-online.target
Wants
=
network-online.target
...
...
packaging/tools/install.sh
浏览文件 @
31828ae3
此差异已折叠。
点击以展开。
packaging/tools/install_client.sh
浏览文件 @
31828ae3
...
@@ -95,7 +95,7 @@ function install_main_path() {
...
@@ -95,7 +95,7 @@ function install_main_path() {
${
csudo
}
mkdir
-p
${
install_main_dir
}
/cfg
${
csudo
}
mkdir
-p
${
install_main_dir
}
/cfg
${
csudo
}
mkdir
-p
${
install_main_dir
}
/bin
${
csudo
}
mkdir
-p
${
install_main_dir
}
/bin
${
csudo
}
mkdir
-p
${
install_main_dir
}
/driver
${
csudo
}
mkdir
-p
${
install_main_dir
}
/driver
if
[
$productName
==
"TDengine"
]
;
then
if
[
"
$productName2
"
==
"TDengine"
]
;
then
${
csudo
}
mkdir
-p
${
install_main_dir
}
/examples
${
csudo
}
mkdir
-p
${
install_main_dir
}
/examples
fi
fi
${
csudo
}
mkdir
-p
${
install_main_dir
}
/include
${
csudo
}
mkdir
-p
${
install_main_dir
}
/include
...
@@ -118,18 +118,19 @@ function install_bin() {
...
@@ -118,18 +118,19 @@ function install_bin() {
#Make link
#Make link
[
-x
${
install_main_dir
}
/bin/
${
clientName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
clientName
}
${
bin_link_dir
}
/
${
clientName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
clientName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
clientName
}
${
bin_link_dir
}
/
${
clientName
}
||
:
if
[
"
$osType
"
!=
"Darwin"
]
;
then
if
[
"
$osType
"
!=
"Darwin"
]
;
then
[
-x
${
install_main_dir
}
/bin/
taosdemo
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taosdemo
${
bin_link_dir
}
/taosdemo
||
:
[
-x
${
install_main_dir
}
/bin/
${
demoName2
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
demoName2
}
${
bin_link_dir
}
/
${
demoName2
}
||
:
fi
fi
[
-x
${
install_main_dir
}
/bin/remove_client.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/remove_client.sh
${
bin_link_dir
}
/
${
uninstallScript
}
||
:
[
-x
${
install_main_dir
}
/bin/remove_client.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/remove_client.sh
${
bin_link_dir
}
/
${
uninstallScript
}
||
:
[
-x
${
install_main_dir
}
/bin/set_core.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/set_core.sh
${
bin_link_dir
}
/set_core
||
:
[
-x
${
install_main_dir
}
/bin/set_core.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/set_core.sh
${
bin_link_dir
}
/set_core
||
:
if
[
"
$verMode
"
==
"cluster"
]
&&
[
"
$clientName
"
!=
"
$clientName2
"
]
;
then
if
[
"
$verMode
"
==
"cluster"
]
&&
[
"
$clientName
"
!=
"
$clientName2
"
]
;
then
#Make link
#Make link
[
-x
${
install_main_dir
}
/bin/
${
clientName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
clientName
}
${
bin_link_dir
}
/
${
clientName2
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
clientName
2
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
clientName2
}
${
bin_link_dir
}
/
${
clientName2
}
||
:
if
[
"
$osType
"
!=
"Darwin"
]
;
then
if
[
"
$osType
"
!=
"Darwin"
]
;
then
[
-x
${
install_main_dir
}
/bin/taosdemo
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/taosdemo
${
bin_link_dir
}
/
${
demoName2
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
demoName2
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
demoName2
}
${
bin_link_dir
}
/
${
demoName2
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
benchmarkName2
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
benchmarkName2
}
${
bin_link_dir
}
/
${
benchmarkName2
}
||
:
fi
fi
[
-x
${
install_main_dir
}
/bin/remove_client.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/remove_client.sh
${
bin_link_dir
}
/
${
uninstallScript2
}
||
:
[
-x
${
install_main_dir
}
/bin/remove_client.sh
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/remove_client.sh
${
bin_link_dir
}
/
${
uninstallScript2
}
||
:
fi
fi
}
}
...
@@ -305,7 +306,7 @@ function update_TDengine() {
...
@@ -305,7 +306,7 @@ function update_TDengine() {
echo
echo
echo
-e
"
\0
33[44;32;1m
${
productName2
}
client is updated successfully!
${
NC
}
"
echo
-e
"
\0
33[44;32;1m
${
productName2
}
client is updated successfully!
${
NC
}
"
rm
-rf
$(
tar
-tf
${
tarName
}
)
rm
-rf
$(
tar
-tf
${
tarName
}
|
grep
-Ev
"^
\.
/
$|
^
\/
"
)
}
}
function
install_TDengine
()
{
function
install_TDengine
()
{
...
@@ -332,7 +333,7 @@ function install_TDengine() {
...
@@ -332,7 +333,7 @@ function install_TDengine() {
echo
echo
echo
-e
"
\0
33[44;32;1m
${
productName2
}
client is installed successfully!
${
NC
}
"
echo
-e
"
\0
33[44;32;1m
${
productName2
}
client is installed successfully!
${
NC
}
"
rm
-rf
$(
tar
-tf
${
tarName
}
)
rm
-rf
$(
tar
-tf
${
tarName
}
|
grep
-Ev
"^
\.
/
$|
^
\/
"
)
}
}
...
...
packaging/tools/makeclient.sh
浏览文件 @
31828ae3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#
#
# Generate tar.gz package for linux client in all os system
# Generate tar.gz package for linux client in all os system
set
-e
set
-e
#
set -x
set
-x
curr_dir
=
$(
pwd
)
curr_dir
=
$(
pwd
)
compile_dir
=
$1
compile_dir
=
$1
...
@@ -23,9 +23,12 @@ clientName2="${12}"
...
@@ -23,9 +23,12 @@ clientName2="${12}"
productName
=
"TDengine"
productName
=
"TDengine"
clientName
=
"taos"
clientName
=
"taos"
benchmarkName
=
"taosBenchmark"
configFile
=
"taos.cfg"
configFile
=
"taos.cfg"
tarName
=
"package.tar.gz"
tarName
=
"package.tar.gz"
benchmarkName2
=
"
${
clientName2
}
Benchmark"
if
[
"
$osType
"
!=
"Darwin"
]
;
then
if
[
"
$osType
"
!=
"Darwin"
]
;
then
script_dir
=
"
$(
dirname
$(
readlink
-f
$0
))
"
script_dir
=
"
$(
dirname
$(
readlink
-f
$0
))
"
top_dir
=
"
$(
readlink
-f
${
script_dir
}
/../..
)
"
top_dir
=
"
$(
readlink
-f
${
script_dir
}
/../..
)
"
...
@@ -53,11 +56,12 @@ fi
...
@@ -53,11 +56,12 @@ fi
# Directories and files.
# Directories and files.
if
[
"
$verMode
"
==
"cluster"
]
;
then
#if [ "$verMode" == "cluster" ]; then
sed
-i
's/verMode=edge/verMode=cluster/g'
${
script_dir
}
/remove_client.sh
# sed -i 's/verMode=edge/verMode=cluster/g' ${script_dir}/remove_client.sh
sed
-i
"s/clientName2=
\"
taos
\"
/clientName2=
\"
${
clientName2
}
\"
/g"
${
script_dir
}
/remove_client.sh
# sed -i "s/clientName2=\"taos\"/clientName2=\"${clientName2}\"/g" ${script_dir}/remove_client.sh
sed
-i
"s/productName2=
\"
TDengine
\"
/productName2=
\"
${
productName2
}
\"
/g"
${
script_dir
}
/remove_client.sh
# sed -i "s/configFile2=\"taos\"/configFile2=\"${clientName2}\"/g" ${script_dir}/remove_client.sh
fi
# sed -i "s/productName2=\"TDengine\"/productName2=\"${productName2}\"/g" ${script_dir}/remove_client.sh
#fi
if
[
"
$osType
"
!=
"Darwin"
]
;
then
if
[
"
$osType
"
!=
"Darwin"
]
;
then
if
[
"
$pagMode
"
==
"lite"
]
;
then
if
[
"
$pagMode
"
==
"lite"
]
;
then
...
@@ -66,6 +70,7 @@ if [ "$osType" != "Darwin" ]; then
...
@@ -66,6 +70,7 @@ if [ "$osType" != "Darwin" ]; then
${
script_dir
}
/remove_client.sh"
${
script_dir
}
/remove_client.sh"
else
else
bin_files
=
"
${
build_dir
}
/bin/
${
clientName
}
\
bin_files
=
"
${
build_dir
}
/bin/
${
clientName
}
\
${
build_dir
}
/bin/
${
benchmarkName
}
\
${
script_dir
}
/remove_client.sh
\
${
script_dir
}
/remove_client.sh
\
${
script_dir
}
/set_core.sh
\
${
script_dir
}
/set_core.sh
\
${
script_dir
}
/get_client.sh"
${
script_dir
}
/get_client.sh"
...
@@ -153,6 +158,7 @@ if [ "$verMode" == "cluster" ]; then
...
@@ -153,6 +158,7 @@ if [ "$verMode" == "cluster" ]; then
sed
-i
's/verMode=edge/verMode=cluster/g'
install_client_temp.sh
sed
-i
's/verMode=edge/verMode=cluster/g'
install_client_temp.sh
sed
-i
"s/serverName2=
\"
taosd
\"
/serverName2=
\"
${
serverName2
}
\"
/g"
install_client_temp.sh
sed
-i
"s/serverName2=
\"
taosd
\"
/serverName2=
\"
${
serverName2
}
\"
/g"
install_client_temp.sh
sed
-i
"s/clientName2=
\"
taos
\"
/clientName2=
\"
${
clientName2
}
\"
/g"
install_client_temp.sh
sed
-i
"s/clientName2=
\"
taos
\"
/clientName2=
\"
${
clientName2
}
\"
/g"
install_client_temp.sh
sed
-i
"s/configFile2=
\"
taos.cfg
\"
/configFile2=
\"
${
clientName2
}
.cfg
\"
/g"
install_client_temp.sh
sed
-i
"s/productName2=
\"
TDengine
\"
/productName2=
\"
${
productName2
}
\"
/g"
install_client_temp.sh
sed
-i
"s/productName2=
\"
TDengine
\"
/productName2=
\"
${
productName2
}
\"
/g"
install_client_temp.sh
sed
-i
"s/emailName2=
\"
taosdata.com
\"
/emailName2=
\"
${
cusEmail2
}
\"
/g"
install_client_temp.sh
sed
-i
"s/emailName2=
\"
taosdata.com
\"
/emailName2=
\"
${
cusEmail2
}
\"
/g"
install_client_temp.sh
...
...
packaging/tools/makepkg.sh
浏览文件 @
31828ae3
...
@@ -96,7 +96,7 @@ else
...
@@ -96,7 +96,7 @@ else
${
taostools_bin_files
}
\
${
taostools_bin_files
}
\
${
taosx_bin
}
\
${
taosx_bin
}
\
${
explorer_bin_files
}
\
${
explorer_bin_files
}
\
${
build_dir
}
/bin/
taos
adapter
\
${
build_dir
}
/bin/
${
clientName
}
adapter
\
${
build_dir
}
/bin/udfd
\
${
build_dir
}
/bin/udfd
\
${
script_dir
}
/remove.sh
\
${
script_dir
}
/remove.sh
\
${
script_dir
}
/set_core.sh
\
${
script_dir
}
/set_core.sh
\
...
@@ -135,12 +135,12 @@ mkdir -p ${install_dir}/inc && cp ${header_files} ${install_dir}/inc
...
@@ -135,12 +135,12 @@ mkdir -p ${install_dir}/inc && cp ${header_files} ${install_dir}/inc
mkdir
-p
${
install_dir
}
/cfg
&&
cp
${
cfg_dir
}
/
${
configFile
}
${
install_dir
}
/cfg/
${
configFile
}
mkdir
-p
${
install_dir
}
/cfg
&&
cp
${
cfg_dir
}
/
${
configFile
}
${
install_dir
}
/cfg/
${
configFile
}
if
[
-f
"
${
compile_dir
}
/test/cfg/
taos
adapter.toml"
]
;
then
if
[
-f
"
${
compile_dir
}
/test/cfg/
${
clientName
}
adapter.toml"
]
;
then
cp
${
compile_dir
}
/test/cfg/
taos
adapter.toml
${
install_dir
}
/cfg
||
:
cp
${
compile_dir
}
/test/cfg/
${
clientName
}
adapter.toml
${
install_dir
}
/cfg
||
:
fi
fi
if
[
-f
"
${
compile_dir
}
/test/cfg/
taos
adapter.service"
]
;
then
if
[
-f
"
${
compile_dir
}
/test/cfg/
${
clientName
}
adapter.service"
]
;
then
cp
${
compile_dir
}
/test/cfg/
taos
adapter.service
${
install_dir
}
/cfg
||
:
cp
${
compile_dir
}
/test/cfg/
${
clientName
}
adapter.service
${
install_dir
}
/cfg
||
:
fi
fi
if
[
-f
"
${
cfg_dir
}
/
${
serverName
}
.service"
]
;
then
if
[
-f
"
${
cfg_dir
}
/
${
serverName
}
.service"
]
;
then
...
@@ -152,16 +152,16 @@ mkdir -p ${install_dir}/init.d && cp ${init_file_deb} ${install_dir}/init.d/${se
...
@@ -152,16 +152,16 @@ mkdir -p ${install_dir}/init.d && cp ${init_file_deb} ${install_dir}/init.d/${se
mkdir
-p
${
install_dir
}
/init.d
&&
cp
${
init_file_rpm
}
${
install_dir
}
/init.d/
${
serverName
}
.rpm
mkdir
-p
${
install_dir
}
/init.d
&&
cp
${
init_file_rpm
}
${
install_dir
}
/init.d/
${
serverName
}
.rpm
if
[
$adapterName
!=
"taosadapter"
]
;
then
if
[
$adapterName
!=
"taosadapter"
]
;
then
mv
${
install_dir
}
/cfg/
taos
adapter.toml
${
install_dir
}
/cfg/
$adapterName
.toml
mv
${
install_dir
}
/cfg/
${
clientName2
}
adapter.toml
${
install_dir
}
/cfg/
$adapterName
.toml
sed
-i
"s/path =
\"\/
var
\/
log
\/
taos
\"
/path =
\"\/
var
\/
log
\/
${
productName
}
\"
/g"
${
install_dir
}
/cfg/
$adapterName
.toml
sed
-i
"s/path =
\"\/
var
\/
log
\/
taos
\"
/path =
\"\/
var
\/
log
\/
${
productName
}
\"
/g"
${
install_dir
}
/cfg/
$adapterName
.toml
sed
-i
"s/password =
\"
taosdata
\"
/password =
\"
${
defaultPasswd
}
\"
/g"
${
install_dir
}
/cfg/
$adapterName
.toml
sed
-i
"s/password =
\"
taosdata
\"
/password =
\"
${
defaultPasswd
}
\"
/g"
${
install_dir
}
/cfg/
$adapterName
.toml
mv
${
install_dir
}
/cfg/
taos
adapter.service
${
install_dir
}
/cfg/
$adapterName
.service
mv
${
install_dir
}
/cfg/
${
clientName2
}
adapter.service
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/TDengine/
${
productName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/TDengine/
${
productName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/taosAdapter/
${
adapterName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/taosAdapter/
${
adapterName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/taosadapter/
${
adapterName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/taosadapter/
${
adapterName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
mv
${
install_dir
}
/bin/
taos
adapter
${
install_dir
}
/bin/
${
adapterName
}
mv
${
install_dir
}
/bin/
${
clientName2
}
adapter
${
install_dir
}
/bin/
${
adapterName
}
mv
${
install_dir
}
/bin/taosd-dump-cfg.gdb
${
install_dir
}
/bin/
${
serverName
}
-dump-cfg
.gdb
mv
${
install_dir
}
/bin/taosd-dump-cfg.gdb
${
install_dir
}
/bin/
${
serverName
}
-dump-cfg
.gdb
fi
fi
...
@@ -233,9 +233,9 @@ if [ "$verMode" == "cluster" ]; then
...
@@ -233,9 +233,9 @@ if [ "$verMode" == "cluster" ]; then
sed
's/verMode=edge/verMode=cluster/g'
${
install_dir
}
/bin/remove.sh
>>
remove_temp.sh
sed
's/verMode=edge/verMode=cluster/g'
${
install_dir
}
/bin/remove.sh
>>
remove_temp.sh
sed
-i
"s/serverName2=
\"
taosd
\"
/serverName2=
\"
${
serverName2
}
\"
/g"
remove_temp.sh
sed
-i
"s/serverName2=
\"
taosd
\"
/serverName2=
\"
${
serverName2
}
\"
/g"
remove_temp.sh
sed
-i
"s/clientName2=
\"
taos
\"
/clientName2=
\"
${
clientName2
}
\"
/g"
remove_temp.sh
sed
-i
"s/clientName2=
\"
taos
\"
/clientName2=
\"
${
clientName2
}
\"
/g"
remove_temp.sh
sed
-i
"s/configFile2=
\"
taos.cfg
\"
/configFile2=
\"
${
clientName2
}
.cfg
\"
/g"
remove_temp.sh
sed
-i
"s/productName2=
\"
TDengine
\"
/productName2=
\"
${
productName2
}
\"
/g"
remove_temp.sh
sed
-i
"s/productName2=
\"
TDengine
\"
/productName2=
\"
${
productName2
}
\"
/g"
remove_temp.sh
cusDomain
=
`
echo
"
${
cusEmail2
}
"
|
sed
's/^[^@]*@//'
`
cusDomain
=
`
echo
"
${
cusEmail2
}
"
|
sed
's/^[^@]*@//'
`
echo
"domain is
${
cusDomain
}
"
sed
-i
"s/emailName2=
\"
taosdata.com
\"
/emailName2=
\"
${
cusDomain
}
\"
/g"
remove_temp.sh
sed
-i
"s/emailName2=
\"
taosdata.com
\"
/emailName2=
\"
${
cusDomain
}
\"
/g"
remove_temp.sh
mv
remove_temp.sh
${
install_dir
}
/bin/remove.sh
mv
remove_temp.sh
${
install_dir
}
/bin/remove.sh
fi
fi
...
@@ -264,8 +264,10 @@ if [ "$verMode" == "cluster" ]; then
...
@@ -264,8 +264,10 @@ if [ "$verMode" == "cluster" ]; then
sed
-i
's/verMode=edge/verMode=cluster/g'
install_temp.sh
sed
-i
's/verMode=edge/verMode=cluster/g'
install_temp.sh
sed
-i
"s/serverName2=
\"
taosd
\"
/serverName2=
\"
${
serverName2
}
\"
/g"
install_temp.sh
sed
-i
"s/serverName2=
\"
taosd
\"
/serverName2=
\"
${
serverName2
}
\"
/g"
install_temp.sh
sed
-i
"s/clientName2=
\"
taos
\"
/clientName2=
\"
${
clientName2
}
\"
/g"
install_temp.sh
sed
-i
"s/clientName2=
\"
taos
\"
/clientName2=
\"
${
clientName2
}
\"
/g"
install_temp.sh
sed
-i
"s/configFile2=
\"
taos.cfg
\"
/configFile2=
\"
${
clientName2
}
.cfg
\"
/g"
install_temp.sh
sed
-i
"s/productName2=
\"
TDengine
\"
/productName2=
\"
${
productName2
}
\"
/g"
install_temp.sh
sed
-i
"s/productName2=
\"
TDengine
\"
/productName2=
\"
${
productName2
}
\"
/g"
install_temp.sh
sed
-i
"s/emailName2=
\"
taosdata.com
\"
/emailName2=
\"
${
cusEmail2
}
\"
/g"
install_temp.sh
cusDomain
=
`
echo
"
${
cusEmail2
}
"
|
sed
's/^[^@]*@//'
`
sed
-i
"s/emailName2=
\"
taosdata.com
\"
/emailName2=
\"
${
cusDomain
}
\"
/g"
install_temp.sh
mv
install_temp.sh
${
install_dir
}
/install.sh
mv
install_temp.sh
${
install_dir
}
/install.sh
fi
fi
if
[
"
$verMode
"
==
"cloud"
]
;
then
if
[
"
$verMode
"
==
"cloud"
]
;
then
...
...
packaging/tools/remove.sh
浏览文件 @
31828ae3
...
@@ -40,11 +40,16 @@ serverName2="taosd"
...
@@ -40,11 +40,16 @@ serverName2="taosd"
clientName2
=
"taos"
clientName2
=
"taos"
productName2
=
"TDengine"
productName2
=
"TDengine"
adapterName2
=
"
${
clientName2
}
adapter"
demoName2
=
"
${
clientName2
}
demo"
benchmarkName2
=
"
${
clientName2
}
Benchmark"
benchmarkName2
=
"
${
clientName2
}
Benchmark"
dumpName2
=
"
${
clientName2
}
dump"
dumpName2
=
"
${
clientName2
}
dump"
keeperName2
=
"
${
clientName2
}
keeper"
xName2
=
"
${
clientName2
}
x"
explorerName2
=
"
${
clientName2
}
-explorer"
uninstallScript2
=
"rm
${
clientName2
}
"
uninstallScript2
=
"rm
${
clientName2
}
"
installDir
=
"/usr/local/
${
clientName
}
"
installDir
=
"/usr/local/
${
clientName
2
}
"
#install main path
#install main path
install_main_dir
=
${
installDir
}
install_main_dir
=
${
installDir
}
...
@@ -55,8 +60,8 @@ local_bin_link_dir="/usr/local/bin"
...
@@ -55,8 +60,8 @@ local_bin_link_dir="/usr/local/bin"
service_config_dir
=
"/etc/systemd/system"
service_config_dir
=
"/etc/systemd/system"
taos_service_name
=
${
serverName
}
taos_service_name
=
${
serverName
2
}
taosadapter_service_name
=
"
taos
adapter"
taosadapter_service_name
=
"
${
clientName2
}
adapter"
tarbitrator_service_name
=
"tarbitratord"
tarbitrator_service_name
=
"tarbitratord"
csudo
=
""
csudo
=
""
if
command
-v
sudo
>
/dev/null
;
then
if
command
-v
sudo
>
/dev/null
;
then
...
@@ -84,14 +89,14 @@ else
...
@@ -84,14 +89,14 @@ else
fi
fi
function
kill_taosadapter
()
{
function
kill_taosadapter
()
{
pid
=
$(
ps
-ef
|
grep
"
taosadapter
"
|
grep
-v
"grep"
|
awk
'{print $2}'
)
pid
=
$(
ps
-ef
|
grep
"
${
adapterName2
}
"
|
grep
-v
"grep"
|
awk
'{print $2}'
)
if
[
-n
"
$pid
"
]
;
then
if
[
-n
"
$pid
"
]
;
then
${
csudo
}
kill
-9
$pid
||
:
${
csudo
}
kill
-9
$pid
||
:
fi
fi
}
}
function
kill_taosd
()
{
function
kill_taosd
()
{
pid
=
$(
ps
-ef
|
grep
${
serverName
}
|
grep
-v
"grep"
|
awk
'{print $2}'
)
pid
=
$(
ps
-ef
|
grep
${
serverName
2
}
|
grep
-v
"grep"
|
awk
'{print $2}'
)
if
[
-n
"
$pid
"
]
;
then
if
[
-n
"
$pid
"
]
;
then
${
csudo
}
kill
-9
$pid
||
:
${
csudo
}
kill
-9
$pid
||
:
fi
fi
...
@@ -109,17 +114,17 @@ function clean_bin() {
...
@@ -109,17 +114,17 @@ function clean_bin() {
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
clientName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
clientName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
serverName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
serverName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/udfd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/udfd
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
taosadapter
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
adapterName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
taosBenchmark
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
benchmarkName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
taosdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
demoName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
taosdump
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
dumpName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
uninstallScript
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
uninstallScript
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/tarbitrator
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/tarbitrator
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/set_core
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/set_core
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/TDinsight.sh
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/TDinsight.sh
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
taoskeeper
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
keeperName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
taosx
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
xName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
taos-explorer
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
explorerName2
}
||
:
if
[
"
$verMode
"
==
"cluster"
]
&&
[
"
$clientName
"
!=
"
$clientName2
"
]
;
then
if
[
"
$verMode
"
==
"cluster"
]
&&
[
"
$clientName
"
!=
"
$clientName2
"
]
;
then
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
clientName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
clientName2
}
||
:
...
@@ -130,8 +135,8 @@ function clean_bin() {
...
@@ -130,8 +135,8 @@ function clean_bin() {
}
}
function
clean_local_bin
()
{
function
clean_local_bin
()
{
${
csudo
}
rm
-f
${
local_bin_link_dir
}
/
taosBenchmark
||
:
${
csudo
}
rm
-f
${
local_bin_link_dir
}
/
${
benchmarkName2
}
||
:
${
csudo
}
rm
-f
${
local_bin_link_dir
}
/
taosdemo
||
:
${
csudo
}
rm
-f
${
local_bin_link_dir
}
/
${
demoName2
}
||
:
}
}
function
clean_lib
()
{
function
clean_lib
()
{
...
@@ -173,7 +178,7 @@ function clean_service_on_systemd() {
...
@@ -173,7 +178,7 @@ function clean_service_on_systemd() {
${
csudo
}
systemctl disable
${
taos_service_name
}
&>/dev/null
||
echo
&>/dev/null
${
csudo
}
systemctl disable
${
taos_service_name
}
&>/dev/null
||
echo
&>/dev/null
${
csudo
}
rm
-f
${
taosd_service_config
}
${
csudo
}
rm
-f
${
taosd_service_config
}
taosadapter_service_config
=
"
${
service_config_dir
}
/
taos
adapter.service"
taosadapter_service_config
=
"
${
service_config_dir
}
/
${
clientName2
}
adapter.service"
if
systemctl is-active
--quiet
${
taosadapter_service_name
}
;
then
if
systemctl is-active
--quiet
${
taosadapter_service_name
}
;
then
echo
"
${
productName2
}
${
clientName2
}
Adapter is running, stopping it..."
echo
"
${
productName2
}
${
clientName2
}
Adapter is running, stopping it..."
${
csudo
}
systemctl stop
${
taosadapter_service_name
}
&>/dev/null
||
echo
&>/dev/null
${
csudo
}
systemctl stop
${
taosadapter_service_name
}
&>/dev/null
||
echo
&>/dev/null
...
@@ -235,8 +240,8 @@ function clean_service_on_sysvinit() {
...
@@ -235,8 +240,8 @@ function clean_service_on_sysvinit() {
function
clean_service_on_launchctl
()
{
function
clean_service_on_launchctl
()
{
${
csudouser
}
launchctl unload
-w
/Library/LaunchDaemons/com.taosdata.taosd.plist
>
/dev/null 2>&1
||
:
${
csudouser
}
launchctl unload
-w
/Library/LaunchDaemons/com.taosdata.taosd.plist
>
/dev/null 2>&1
||
:
${
csudo
}
rm
/Library/LaunchDaemons/com.taosdata.taosd.plist
>
/dev/null 2>&1
||
:
${
csudo
}
rm
/Library/LaunchDaemons/com.taosdata.taosd.plist
>
/dev/null 2>&1
||
:
${
csudouser
}
launchctl unload
-w
/Library/LaunchDaemons/com.taosdata.
taos
adapter.plist
>
/dev/null 2>&1
||
:
${
csudouser
}
launchctl unload
-w
/Library/LaunchDaemons/com.taosdata.
${
clientName2
}
adapter.plist
>
/dev/null 2>&1
||
:
${
csudo
}
rm
/Library/LaunchDaemons/com.taosdata.
taos
adapter.plist
>
/dev/null 2>&1
||
:
${
csudo
}
rm
/Library/LaunchDaemons/com.taosdata.
${
clientName2
}
adapter.plist
>
/dev/null 2>&1
||
:
}
}
function
clean_service
()
{
function
clean_service
()
{
...
...
packaging/tools/remove_client.sh
浏览文件 @
31828ae3
...
@@ -15,11 +15,12 @@ uninstallScript="rmtaos"
...
@@ -15,11 +15,12 @@ uninstallScript="rmtaos"
clientName2
=
"taos"
clientName2
=
"taos"
productName2
=
"TDengine"
productName2
=
"TDengine"
benchmarkName2
=
"
${
clientName
}
Benchmark"
benchmarkName2
=
"
${
clientName2
}
Benchmark"
dumpName2
=
"
${
clientName
}
dump"
demoName2
=
"
${
clientName2
}
demo"
uninstallScript2
=
"rm
${
clientName
}
"
dumpName2
=
"
${
clientName2
}
dump"
uninstallScript2
=
"rm
${
clientName2
}
"
installDir
=
"/usr/local/
${
clientName
}
"
installDir
=
"/usr/local/
${
clientName
2
}
"
#install main path
#install main path
install_main_dir
=
${
installDir
}
install_main_dir
=
${
installDir
}
...
@@ -44,14 +45,17 @@ function kill_client() {
...
@@ -44,14 +45,17 @@ function kill_client() {
function
clean_bin
()
{
function
clean_bin
()
{
# Remove link
# Remove link
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
clientName
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
clientName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdemo
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
demoName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdump
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
benchmarkName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
dumpName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
uninstallScript
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
uninstallScript
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/set_core
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/set_core
||
:
if
[
"
$verMode
"
==
"cluster"
]
&&
[
"
$clientName
"
!=
"
$clientName2
"
]
;
then
if
[
"
$verMode
"
==
"cluster"
]
&&
[
"
$clientName
"
!=
"
$clientName2
"
]
;
then
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
clientName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
clientName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
demoName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
benchmarkName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
dumpName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
dumpName2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
uninstallScript2
}
||
:
${
csudo
}
rm
-f
${
bin_link_dir
}
/
${
uninstallScript2
}
||
:
fi
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录