Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
40d99e45
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
40d99e45
编写于
3月 14, 2023
作者:
sangshuduo
提交者:
GitHub
3月 14, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: support cus name (#20441)
* chore: support cus name * fix: cfg/taos.cfg * chore: update taos-tools
上级
fb855f8a
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
125 addition
and
125 deletion
+125
-125
cmake/taostools_CMakeLists.txt.in
cmake/taostools_CMakeLists.txt.in
+1
-1
packaging/cfg/taos.cfg
packaging/cfg/taos.cfg
+5
-5
packaging/debRpmAutoInstall.sh
packaging/debRpmAutoInstall.sh
+4
-4
packaging/testpackage.sh
packaging/testpackage.sh
+37
-37
packaging/tools/install.sh
packaging/tools/install.sh
+49
-49
packaging/tools/install_client.sh
packaging/tools/install_client.sh
+1
-1
packaging/tools/make_install.sh
packaging/tools/make_install.sh
+10
-10
packaging/tools/makeclient.sh
packaging/tools/makeclient.sh
+1
-1
packaging/tools/makepkg.sh
packaging/tools/makepkg.sh
+11
-11
packaging/tools/post.sh
packaging/tools/post.sh
+1
-1
packaging/tools/release_note
packaging/tools/release_note
+1
-1
packaging/tools/repair_link.sh
packaging/tools/repair_link.sh
+4
-4
未找到文件。
cmake/taostools_CMakeLists.txt.in
浏览文件 @
40d99e45
...
...
@@ -2,7 +2,7 @@
# taos-tools
ExternalProject_Add(taos-tools
GIT_REPOSITORY https://github.com/taosdata/taos-tools.git
GIT_TAG
41affde
GIT_TAG
ad1a32b
SOURCE_DIR "${TD_SOURCE_DIR}/tools/taos-tools"
BINARY_DIR ""
#BUILD_IN_SOURCE TRUE
...
...
packaging/cfg/taos.cfg
浏览文件 @
40d99e45
########################################################
# #
#
TDengine Configuration
#
#
Configuration
#
# Any questions, please email support@taosdata.com #
# #
########################################################
######### 0. Client only configurations #############
# The interval for
TDengine
CLI to send heartbeat to mnode
# The interval for CLI to send heartbeat to mnode
# shellActivityTimer 3
############### 1. Cluster End point ############################
# The end point of the first dnode in the cluster to be connected to when this dnode or a
TDengine
CLI `taos` is started
# The end point of the first dnode in the cluster to be connected to when this dnode or a CLI `taos` is started
# firstEp hostname:6030
# The end point of the second dnode to be connected to if the firstEp is not available
...
...
@@ -40,10 +40,10 @@
# temporary file's directory, if you are using Windows platform please change to Windows path
# tempDir /tmp/
# Switch for allowing
TDengine
to collect and report service usage information
# Switch for allowing to collect and report service usage information
# telemetryReporting 1
# Switch for allowing
TDengine
to collect and report crash information
# Switch for allowing to collect and report crash information
# crashReporting 1
# The maximum number of vnodes supported by this dnode
...
...
packaging/debRpmAutoInstall.sh
浏览文件 @
40d99e45
#!/usr/bin/expect
set
packgeName
[
lindex
$argv
0]
set
pack
a
geName
[
lindex
$argv
0]
set
packageSuffix
[
lindex
$argv
1]
set timeout
3
if
{
${
packageSuffix
}
==
"deb"
}
{
spawn dpkg
-i
${
packgeName
}
spawn dpkg
-i
${
pack
a
geName
}
}
elseif
{
${
packageSuffix
}
==
"rpm"
}
{
spawn rpm
-ivh
${
packgeName
}
spawn rpm
-ivh
${
pack
a
geName
}
}
expect
"*one:"
send
"
\r
"
expect
"*skip:"
send
"
\r
"
expect eof
\ No newline at end of file
expect eof
packaging/testpackage.sh
浏览文件 @
40d99e45
...
...
@@ -25,7 +25,7 @@ sourcePath="nas"
cpuType
=
"x64"
lite
=
"true"
packageType
=
"tar"
subFile
=
"
taos
.tar.gz"
subFile
=
"
package
.tar.gz"
while
getopts
"m:c:f:l:s:o:t:v:h"
opt
;
do
case
$opt
in
m
)
...
...
@@ -79,9 +79,9 @@ GREEN_UNDERLINE='\033[4;32m'
NC
=
'\033[0m'
if
[[
${
verMode
}
=
"enterprise"
]]
;
then
prePackag
=
"TDengine-enterprise-
${
testFile
}
"
prePackag
e
=
"TDengine-enterprise-
${
testFile
}
"
elif
[
${
verMode
}
=
"community"
]
;
then
prePackag
=
"TDengine-
${
testFile
}
"
prePackag
e
=
"TDengine-
${
testFile
}
"
fi
if
[
${
lite
}
=
"true"
]
;
then
packageLite
=
"-Lite"
...
...
@@ -92,10 +92,10 @@ if [[ "$packageType" = "tar" ]] ;then
packageType
=
"tar.gz"
fi
tdPath
=
"
${
prePackag
}
-
${
version
}
"
originTdpPath
=
"
${
prePackag
}
-
${
originversion
}
"
tdPath
=
"
${
prePackag
e
}
-
${
version
}
"
originTdpPath
=
"
${
prePackag
e
}
-
${
originversion
}
"
packgeName
=
"
${
tdPath
}
-Linux-
${
cpuType
}${
packageLite
}
.
${
packageType
}
"
pack
a
geName
=
"
${
tdPath
}
-Linux-
${
cpuType
}${
packageLite
}
.
${
packageType
}
"
originPackageName
=
"
${
originTdpPath
}
-Linux-
${
cpuType
}${
packageLite
}
.
${
packageType
}
"
if
[
"
$testFile
"
==
"server"
]
;
then
...
...
@@ -105,13 +105,13 @@ elif [ ${testFile} = "client" ];then
elif
[
${
testFile
}
=
"tools"
]
;
then
tdPath
=
"taosTools-
${
version
}
"
originTdpPath
=
"taosTools-
${
originversion
}
"
packgeName
=
"
${
tdPath
}
-Linux-
${
cpuType
}${
packageLite
}
.
${
packageType
}
"
pack
a
geName
=
"
${
tdPath
}
-Linux-
${
cpuType
}${
packageLite
}
.
${
packageType
}
"
originPackageName
=
"
${
originTdpPath
}
-Linux-
${
cpuType
}${
packageLite
}
.
${
packageType
}
"
installCmd
=
"install-t
aost
ools.sh"
installCmd
=
"install-tools.sh"
fi
echo
"tdPath:
${
tdPath
}
,originTdpPath:
${
originTdpPath
}
,pack
geName:
${
pack
geName
}
,originPackageName:
${
originPackageName
}
"
echo
"tdPath:
${
tdPath
}
,originTdpPath:
${
originTdpPath
}
,pack
ageName:
${
packa
geName
}
,originPackageName:
${
originPackageName
}
"
function
cmdInstall
{
command
=
$1
if
command
-v
${
command
}
;
then
...
...
@@ -206,7 +206,7 @@ else
fi
if
[[
${
packgeName
}
=
~
"server"
]]
;
then
if
[[
${
pack
a
geName
}
=
~
"server"
]]
;
then
echoColor BD
" pkill -9 taosd "
pkill
-9
taosd
fi
...
...
@@ -232,25 +232,25 @@ if [ -d ${installPath}/${tdPath} ] ;then
fi
echoColor G
"===== download installPackage ====="
cd
${
installPath
}
&&
wgetFile
${
packgeName
}
${
version
}
${
sourcePath
}
cd
${
installPath
}
&&
wgetFile
${
pack
a
geName
}
${
version
}
${
sourcePath
}
cd
${
oriInstallPath
}
&&
wgetFile
${
originPackageName
}
${
originversion
}
${
sourcePath
}
cd
${
installPath
}
cp
-r
${
scriptDir
}
/debRpmAutoInstall.sh
.
packageSuffix
=
$(
echo
${
packgeName
}
|
awk
-F
'.'
'{print $NF}'
)
packageSuffix
=
$(
echo
${
pack
a
geName
}
|
awk
-F
'.'
'{print $NF}'
)
if
[
!
-f
debRpmAutoInstall.sh
]
;
then
echo
'#!/usr/bin/expect '
>
debRpmAutoInstall.sh
echo
'set packgeName [lindex $argv 0]'
>>
debRpmAutoInstall.sh
echo
'set pack
a
geName [lindex $argv 0]'
>>
debRpmAutoInstall.sh
echo
'set packageSuffix [lindex $argv 1]'
>>
debRpmAutoInstall.sh
echo
'set timeout 3 '
>>
debRpmAutoInstall.sh
echo
'if { ${packageSuffix} == "deb" } {'
>>
debRpmAutoInstall.sh
echo
' spawn dpkg -i ${packgeName} '
>>
debRpmAutoInstall.sh
echo
' spawn dpkg -i ${pack
a
geName} '
>>
debRpmAutoInstall.sh
echo
'} elseif { ${packageSuffix} == "rpm"} {'
>>
debRpmAutoInstall.sh
echo
' spawn rpm -ivh ${packgeName}'
>>
debRpmAutoInstall.sh
echo
' spawn rpm -ivh ${pack
a
geName}'
>>
debRpmAutoInstall.sh
echo
'}'
>>
debRpmAutoInstall.sh
echo
'expect "*one:"'
>>
debRpmAutoInstall.sh
echo
'send "\r"'
>>
debRpmAutoInstall.sh
...
...
@@ -261,25 +261,25 @@ fi
echoColor G
"===== instal Package ====="
if
[[
${
packgeName
}
=
~
"deb"
]]
;
then
if
[[
${
pack
a
geName
}
=
~
"deb"
]]
;
then
cd
${
installPath
}
dpkg
-r
taostools
dpkg
-r
tdengine
if
[[
${
packgeName
}
=
~
"TDengine"
]]
;
then
echoColor BD
"./debRpmAutoInstall.sh
${
pack
geName
}
${
packageSuffix
}
"
&&
chmod
755 debRpmAutoInstall.sh
&&
./debRpmAutoInstall.sh
${
pack
geName
}
${
packageSuffix
}
if
[[
${
pack
a
geName
}
=
~
"TDengine"
]]
;
then
echoColor BD
"./debRpmAutoInstall.sh
${
pack
ageName
}
${
packageSuffix
}
"
&&
chmod
755 debRpmAutoInstall.sh
&&
./debRpmAutoInstall.sh
${
packa
geName
}
${
packageSuffix
}
else
echoColor BD
"dpkg -i
${
pack
geName
}
"
&&
dpkg
-i
${
pack
geName
}
echoColor BD
"dpkg -i
${
pack
ageName
}
"
&&
dpkg
-i
${
packa
geName
}
fi
elif
[[
${
packgeName
}
=
~
"rpm"
]]
;
then
elif
[[
${
pack
a
geName
}
=
~
"rpm"
]]
;
then
cd
${
installPath
}
sudo
rpm
-e
tdengine
sudo
rpm
-e
taostools
if
[[
${
packgeName
}
=
~
"TDengine"
]]
;
then
echoColor BD
"./debRpmAutoInstall.sh
${
pack
geName
}
${
packageSuffix
}
"
&&
chmod
755 debRpmAutoInstall.sh
&&
./debRpmAutoInstall.sh
${
pack
geName
}
${
packageSuffix
}
if
[[
${
pack
a
geName
}
=
~
"TDengine"
]]
;
then
echoColor BD
"./debRpmAutoInstall.sh
${
pack
ageName
}
${
packageSuffix
}
"
&&
chmod
755 debRpmAutoInstall.sh
&&
./debRpmAutoInstall.sh
${
packa
geName
}
${
packageSuffix
}
else
echoColor BD
"rpm -ivh
${
pack
geName
}
"
&&
rpm
-ivh
${
pack
geName
}
echoColor BD
"rpm -ivh
${
pack
ageName
}
"
&&
rpm
-ivh
${
packa
geName
}
fi
elif
[[
${
packgeName
}
=
~
"tar"
]]
;
then
elif
[[
${
pack
a
geName
}
=
~
"tar"
]]
;
then
echoColor G
"===== check installPackage File of tar ====="
cd
${
oriInstallPath
}
if
[
!
-f
{
originPackageName
}
]
;
then
...
...
@@ -290,7 +290,7 @@ elif [[ ${packgeName} =~ "tar" ]];then
echoColor BD
"tar -xf
${
originPackageName
}
"
&&
tar
-xf
${
originPackageName
}
cd
${
installPath
}
echoColor YD
"unzip the new installation package"
echoColor BD
"tar -xf
${
pack
geName
}
"
&&
tar
-xf
${
pack
geName
}
echoColor BD
"tar -xf
${
pack
ageName
}
"
&&
tar
-xf
${
packa
geName
}
if
[
${
testFile
}
!=
"tools"
]
;
then
cd
${
installPath
}
/
${
tdPath
}
&&
tar
xf
${
subFile
}
...
...
@@ -326,15 +326,15 @@ fi
cd
${
installPath
}
if
[[
${
pack
geName
}
=
~
"Lite"
]]
||
([[
${
packgeName
}
=
~
"x64"
]]
&&
[[
${
packgeName
}
=
~
"client"
]])
||
([[
${
packgeName
}
=
~
"deb"
]]
&&
[[
${
packgeName
}
=
~
"server"
]])
||
([[
${
packgeName
}
=
~
"rpm"
]]
&&
[[
${
pack
geName
}
=
~
"server"
]])
;
then
if
[[
${
pack
ageName
}
=
~
"Lite"
]]
||
([[
${
packageName
}
=
~
"x64"
]]
&&
[[
${
packageName
}
=
~
"client"
]])
||
([[
${
packageName
}
=
~
"deb"
]]
&&
[[
${
packageName
}
=
~
"server"
]])
||
([[
${
packageName
}
=
~
"rpm"
]]
&&
[[
${
packa
geName
}
=
~
"server"
]])
;
then
echoColor G
"===== install taos-tools when package is lite or client ====="
cd
${
installPath
}
if
[
!
-f
"taosTools-2.1.3-Linux-x64.tar.gz "
]
;
then
wgetFile taosTools-2.1.3-Linux-x64.tar.gz v2.1.3 web
tar
xf taosTools-2.1.3-Linux-x64.tar.gz
fi
cd
taosTools-2.1.3
&&
bash install-t
aost
ools.sh
elif
([[
${
pack
geName
}
=
~
"arm64"
]]
&&
[[
${
pack
geName
}
=
~
"client"
]])
;
then
cd
taosTools-2.1.3
&&
bash install-tools.sh
elif
([[
${
pack
ageName
}
=
~
"arm64"
]]
&&
[[
${
packa
geName
}
=
~
"client"
]])
;
then
echoColor G
"===== install taos-tools arm when package is arm64-client ====="
cd
${
installPath
}
if
[
!
-f
"taosTools-2.1.3-Linux-x64.tar.gz "
]
;
then
...
...
@@ -342,37 +342,37 @@ elif ([[ ${packgeName} =~ "arm64" ]] && [[ ${packgeName} =~ "client" ]]);then
tar
xf taosTools-2.1.3-Linux-arm64.tar.gz
fi
cd
taosTools-2.1.3
&&
bash install-t
aost
ools.sh
cd
taosTools-2.1.3
&&
bash install-tools.sh
fi
echoColor G
"===== start TDengine ====="
if
[[
${
packgeName
}
=
~
"server"
]]
;
then
if
[[
${
pack
a
geName
}
=
~
"server"
]]
;
then
echoColor BD
" rm -rf /var/lib/taos/* && systemctl restart taosd "
rm
-rf
/var/lib/taos/
*
systemctl restart taosd
fi
rm
-rf
${
installPath
}
/
${
packgeName
}
rm
-rf
${
installPath
}
/
${
pack
a
geName
}
rm
-rf
${
installPath
}
/
${
tdPath
}
/
# if ([[ ${pack
geName} =~ "Lite" ]] && [[ ${packgeName} =~ "tar" ]]) || [[ ${pack
geName} =~ "client" ]] ;then
# if ([[ ${pack
ageName} =~ "Lite" ]] && [[ ${packageName} =~ "tar" ]]) || [[ ${packa
geName} =~ "client" ]] ;then
# echoColor G "===== install taos-tools when package is lite or client ====="
# cd ${installPath}
# wgetFile taosTools-2.1.2-Linux-x64.tar.gz .
# tar xf taosTools-2.1.2-Linux-x64.tar.gz
# cd taosTools-2.1.2 && bash install-t
aost
ools.sh
# elif [[ ${pack
geName} =~ "Lite" ]] && [[ ${pack
geName} =~ "deb" ]] ;then
# cd taosTools-2.1.2 && bash install-tools.sh
# elif [[ ${pack
ageName} =~ "Lite" ]] && [[ ${packa
geName} =~ "deb" ]] ;then
# echoColor G "===== install taos-tools when package is lite or client ====="
# cd ${installPath}
# wgetFile taosTools-2.1.2-Linux-x64.tar.gz .
# tar xf taosTools-2.1.2-Linux-x64.tar.gz
# cd taosTools-2.1.2 && bash install-t
aost
ools.sh
# elif [[ ${pack
geName} =~ "Lite" ]] && [[ ${pack
geName} =~ "rpm" ]] ;then
# cd taosTools-2.1.2 && bash install-tools.sh
# elif [[ ${pack
ageName} =~ "Lite" ]] && [[ ${packa
geName} =~ "rpm" ]] ;then
# echoColor G "===== install taos-tools when package is lite or client ====="
# cd ${installPath}
# wgetFile taosTools-2.1.2-Linux-x64.tar.gz .
# tar xf taosTools-2.1.2-Linux-x64.tar.gz
# cd taosTools-2.1.2 && bash install-t
aost
ools.sh
# cd taosTools-2.1.2 && bash install-tools.sh
# fi
packaging/tools/install.sh
浏览文件 @
40d99e45
...
...
@@ -24,7 +24,7 @@ productName="TDengine"
emailName
=
"taosdata.com"
uninstallScript
=
"rmtaos"
historyFile
=
"taos_history"
tarName
=
"
taos
.tar.gz"
tarName
=
"
package
.tar.gz"
dataDir
=
"/var/lib/taos"
logDir
=
"/var/log/taos"
configDir
=
"/etc/taos"
...
...
@@ -222,24 +222,24 @@ function install_bin() {
${
csudo
}
cp
-r
${
script_dir
}
/bin/
*
${
install_main_dir
}
/bin
&&
${
csudo
}
chmod
0555
${
install_main_dir
}
/bin/
*
#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/
${
serverName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
serverName
}
${
bin_link_dir
}
/
${
serverName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
udfdName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
udfdName
}
${
bin_link_dir
}
/
${
udfdName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
adapterName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
adapterName
}
${
bin_link_dir
}
/
${
adapterName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
clientName
}
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/
${
clientName
}
${
bin_link_dir
}
/
${
clientName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
serverName
}
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/
${
serverName
}
${
bin_link_dir
}
/
${
serverName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
udfdName
}
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/
${
udfdName
}
${
bin_link_dir
}
/
${
udfdName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
adapterName
}
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/
${
adapterName
}
${
bin_link_dir
}
/
${
adapterName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
benchmarkName
}
]
&&
${
csudo
}
ln
-sf
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
bin_link_dir
}
/
${
demoName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
benchmarkName
}
]
&&
${
csudo
}
ln
-sf
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
bin_link_dir
}
/
${
benchmarkName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
dumpName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
dumpName
}
${
bin_link_dir
}
/
${
dumpName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
xname
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
xname
}
${
bin_link_dir
}
/
${
xname
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
explorerName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
explorerName
}
${
bin_link_dir
}
/
${
explorerName
}
||
:
[
-x
${
install_main_dir
}
/bin/TDinsight.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/TDinsight.sh
${
bin_link_dir
}
/TDinsight.sh
||
:
[
-x
${
install_main_dir
}
/bin/remove.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/remove.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/
${
dumpName
}
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/
${
dumpName
}
${
bin_link_dir
}
/
${
dumpName
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
xname
}
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/
${
xname
}
${
bin_link_dir
}
/
${
xname
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
explorerName
}
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/
${
explorerName
}
${
bin_link_dir
}
/
${
explorerName
}
||
:
[
-x
${
install_main_dir
}
/bin/TDinsight.sh
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/TDinsight.sh
${
bin_link_dir
}
/TDinsight.sh
||
:
[
-x
${
install_main_dir
}
/bin/remove.sh
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/remove.sh
${
bin_link_dir
}
/
${
uninstallScript
}
||
:
[
-x
${
install_main_dir
}
/bin/set_core.sh
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/set_core.sh
${
bin_link_dir
}
/set_core
||
:
if
[
"
$verMode
"
==
"cluster"
]
&&
[
"
$clientName
"
!=
"
$clientName2
"
]
;
then
[
-x
${
install_main_dir
}
/bin/
${
clientName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
clientName
}
${
bin_link_dir
}
/
${
clientName2
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
benchmarkName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
bin_link_dir
}
/
${
benchmarkName2
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
dumpName
}
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/
${
dumpName
}
${
bin_link_dir
}
/
${
dumpName2
}
||
:
[
-x
${
install_main_dir
}
/bin/remove.sh
]
&&
${
csudo
}
ln
-s
${
install_main_dir
}
/bin/remove.sh
${
bin_link_dir
}
/
${
uninstallScript2
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
clientName
}
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/
${
clientName
}
${
bin_link_dir
}
/
${
clientName2
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
benchmarkName
}
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/
${
benchmarkName
}
${
bin_link_dir
}
/
${
benchmarkName2
}
||
:
[
-x
${
install_main_dir
}
/bin/
${
dumpName
}
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/
${
dumpName
}
${
bin_link_dir
}
/
${
dumpName2
}
||
:
[
-x
${
install_main_dir
}
/bin/remove.sh
]
&&
${
csudo
}
ln
-s
f
${
install_main_dir
}
/bin/remove.sh
${
bin_link_dir
}
/
${
uninstallScript2
}
||
:
fi
}
...
...
@@ -250,14 +250,14 @@ function install_lib() {
#${csudo}rm -rf ${v15_java_app_dir} || :
${
csudo
}
cp
-rf
${
script_dir
}
/driver/
*
${
install_main_dir
}
/driver
&&
${
csudo
}
chmod
777
${
install_main_dir
}
/driver/
*
${
csudo
}
ln
-s
${
install_main_dir
}
/driver/libtaos.
*
${
lib_link_dir
}
/libtaos.so.1
${
csudo
}
ln
-s
${
lib_link_dir
}
/libtaos.so.1
${
lib_link_dir
}
/libtaos.so
${
csudo
}
ln
-s
f
${
install_main_dir
}
/driver/libtaos.
*
${
lib_link_dir
}
/libtaos.so.1
${
csudo
}
ln
-s
f
${
lib_link_dir
}
/libtaos.so.1
${
lib_link_dir
}
/libtaos.so
[
-f
${
install_main_dir
}
/driver/libtaosws.so
]
&&
${
csudo
}
ln
-sf
${
install_main_dir
}
/driver/libtaosws.so
${
lib_link_dir
}
/libtaosws.so
||
:
if
[[
-d
${
lib64_link_dir
}
&&
!
-e
${
lib64_link_dir
}
/libtaos.so
]]
;
then
${
csudo
}
ln
-s
${
install_main_dir
}
/driver/libtaos.
*
${
lib64_link_dir
}
/libtaos.so.1
||
:
${
csudo
}
ln
-s
${
lib64_link_dir
}
/libtaos.so.1
${
lib64_link_dir
}
/libtaos.so
||
:
${
csudo
}
ln
-s
f
${
install_main_dir
}
/driver/libtaos.
*
${
lib64_link_dir
}
/libtaos.so.1
||
:
${
csudo
}
ln
-s
f
${
lib64_link_dir
}
/libtaos.so.1
${
lib64_link_dir
}
/libtaos.so
||
:
[
-f
${
install_main_dir
}
/libtaosws.so
]
&&
${
csudo
}
ln
-sf
${
install_main_dir
}
/libtaosws.so
${
lib64_link_dir
}
/libtaosws.so
||
:
fi
...
...
@@ -347,10 +347,10 @@ function install_header() {
[
-f
${
inc_link_dir
}
/taosws.h
]
&&
${
csudo
}
rm
-f
${
inc_link_dir
}
/taosws.h
||
:
${
csudo
}
cp
-f
${
script_dir
}
/inc/
*
${
install_main_dir
}
/include
&&
${
csudo
}
chmod
644
${
install_main_dir
}
/include/
*
${
csudo
}
ln
-s
${
install_main_dir
}
/include/taos.h
${
inc_link_dir
}
/taos.h
${
csudo
}
ln
-s
${
install_main_dir
}
/include/taosdef.h
${
inc_link_dir
}
/taosdef.h
${
csudo
}
ln
-s
${
install_main_dir
}
/include/taoserror.h
${
inc_link_dir
}
/taoserror.h
${
csudo
}
ln
-s
${
install_main_dir
}
/include/taosudf.h
${
inc_link_dir
}
/taosudf.h
${
csudo
}
ln
-s
f
${
install_main_dir
}
/include/taos.h
${
inc_link_dir
}
/taos.h
${
csudo
}
ln
-s
f
${
install_main_dir
}
/include/taosdef.h
${
inc_link_dir
}
/taosdef.h
${
csudo
}
ln
-s
f
${
install_main_dir
}
/include/taoserror.h
${
inc_link_dir
}
/taoserror.h
${
csudo
}
ln
-s
f
${
install_main_dir
}
/include/taosudf.h
${
inc_link_dir
}
/taosudf.h
[
-f
${
install_main_dir
}
/include/taosws.h
]
&&
${
csudo
}
ln
-sf
${
install_main_dir
}
/include/taosws.h
${
inc_link_dir
}
/taosws.h
||
:
}
...
...
@@ -511,7 +511,7 @@ function install_adapter_config() {
fi
[
-f
${
cfg_install_dir
}
/
${
adapterName
}
.toml
]
&&
${
csudo
}
ln
-s
${
cfg_install_dir
}
/
${
adapterName
}
.toml
${
install_main_dir
}
/cfg/
${
adapterName
}
.toml
${
csudo
}
ln
-s
f
${
cfg_install_dir
}
/
${
adapterName
}
.toml
${
install_main_dir
}
/cfg/
${
adapterName
}
.toml
[
!
-z
$1
]
&&
return
0
||
:
# only install client
...
...
@@ -527,7 +527,7 @@ function install_config() {
${
csudo
}
cp
-f
${
script_dir
}
/cfg/
${
configFile
}
${
cfg_install_dir
}
/
${
configFile
}
.new
fi
${
csudo
}
ln
-s
${
cfg_install_dir
}
/
${
configFile
}
${
install_main_dir
}
/cfg
${
csudo
}
ln
-s
f
${
cfg_install_dir
}
/
${
configFile
}
${
install_main_dir
}
/cfg
[
!
-z
$1
]
&&
return
0
||
:
# only install client
...
...
@@ -573,13 +573,13 @@ function install_log() {
${
csudo
}
rm
-rf
${
log_dir
}
||
:
${
csudo
}
mkdir
-p
${
log_dir
}
&&
${
csudo
}
chmod
777
${
log_dir
}
${
csudo
}
ln
-s
${
log_dir
}
${
install_main_dir
}
/log
${
csudo
}
ln
-s
f
${
log_dir
}
${
install_main_dir
}
/log
}
function
install_data
()
{
${
csudo
}
mkdir
-p
${
data_dir
}
${
csudo
}
ln
-s
${
data_dir
}
${
install_main_dir
}
/data
${
csudo
}
ln
-s
f
${
data_dir
}
${
install_main_dir
}
/data
}
function
install_connector
()
{
...
...
@@ -862,21 +862,21 @@ function updateProduct() {
openresty_work
=
false
echo
echo
-e
"
${
GREEN_DARK
}
To configure
${
productName
}
${
NC
}
: edit
${
cfg_install_dir
}
/
${
configFile
}
"
echo
-e
"
${
GREEN_DARK
}
To configure
${
productName
2
}
${
NC
}
: edit
${
cfg_install_dir
}
/
${
configFile
}
"
[
-f
${
configDir
}
/taosadapter.toml
]
&&
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To configure Adapter
${
NC
}
: edit
${
configDir
}
/taosadapter.toml"
echo
-e
"
${
GREEN_DARK
}
To configure
${
clientName2
}
Adapter
${
NC
}
: edit
${
configDir
}
/taosadapter.toml"
if
((
${
service_mod
}
==
0
))
;
then
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
}
${
NC
}
:
${
csudo
}
systemctl start
${
serverName
}${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
2
}
${
NC
}
:
${
csudo
}
systemctl start
${
serverName
}${
NC
}
"
[
-f
${
service_config_dir
}
/taosadapter.service
]
&&
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To start
Adatp
er
${
NC
}
:
${
csudo
}
systemctl start taosadapter
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
${
clientName2
}
Adapt
er
${
NC
}
:
${
csudo
}
systemctl start taosadapter
${
NC
}
"
elif
((
${
service_mod
}
==
1
))
;
then
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
}
${
NC
}
:
${
csudo
}
service
${
serverName
}
start
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
2
}
${
NC
}
:
${
csudo
}
service
${
serverName
}
start
${
NC
}
"
[
-f
${
service_config_dir
}
/taosadapter.service
]
&&
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To start Adapter
${
NC
}
:
${
csudo
}
service taosadapter start
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
${
clientName2
}
Adapter
${
NC
}
:
${
csudo
}
service taosadapter start
${
NC
}
"
else
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
}
${
NC
}
: ./
${
serverName
}${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
2
}
${
NC
}
: ./
${
serverName
}${
NC
}
"
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To start
${
clientName
}
Adapter
${
NC
}
: taosadapter &
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
${
clientName
2
}
Adapter
${
NC
}
: taosadapter &
${
NC
}
"
fi
if
[
${
openresty_work
}
=
'true'
]
;
then
...
...
@@ -887,7 +887,7 @@ function updateProduct() {
if
((
${
prompt_force
}
==
1
))
;
then
echo
""
echo
-e
"
${
RED
}
Please run '
${
serverName
}
--force-keep-file' at first time for the exist
${
productName
}
$exist_version
!
${
NC
}
"
echo
-e
"
${
RED
}
Please run '
${
serverName
}
--force-keep-file' at first time for the exist
${
productName
2
}
$exist_version
!
${
NC
}
"
fi
echo
echo
-e
"
\0
33[44;32;1m
${
productName2
}
is updated successfully!
${
NC
}
"
...
...
@@ -944,21 +944,21 @@ function installProduct() {
# Ask if to start the service
echo
echo
-e
"
${
GREEN_DARK
}
To configure
${
productName
}
${
NC
}
: edit
${
cfg_install_dir
}
/
${
configFile
}
"
echo
-e
"
${
GREEN_DARK
}
To configure
${
productName
2
}
${
NC
}
: edit
${
cfg_install_dir
}
/
${
configFile
}
"
[
-f
${
configDir
}
/taosadapter.toml
]
&&
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To configure
Taos
Adapter
${
NC
}
: edit
${
configDir
}
/taosadapter.toml"
echo
-e
"
${
GREEN_DARK
}
To configure
${
clientName2
}
Adapter
${
NC
}
: edit
${
configDir
}
/taosadapter.toml"
if
((
${
service_mod
}
==
0
))
;
then
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
}
${
NC
}
:
${
csudo
}
systemctl start
${
serverName
}${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
2
}
${
NC
}
:
${
csudo
}
systemctl start
${
serverName
}${
NC
}
"
[
-f
${
service_config_dir
}
/taosadapter.service
]
&&
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To start
Taos Adatp
er
${
NC
}
:
${
csudo
}
systemctl start taosadapter
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
${
clientName2
}
Adapt
er
${
NC
}
:
${
csudo
}
systemctl start taosadapter
${
NC
}
"
elif
((
${
service_mod
}
==
1
))
;
then
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
}
${
NC
}
:
${
csudo
}
service
${
serverName
}
start
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
2
}
${
NC
}
:
${
csudo
}
service
${
serverName
}
start
${
NC
}
"
[
-f
${
service_config_dir
}
/taosadapter.service
]
&&
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To start
Taos
Adapter
${
NC
}
:
${
csudo
}
service taosadapter start
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
${
clientName2
}
Adapter
${
NC
}
:
${
csudo
}
service taosadapter start
${
NC
}
"
else
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
}
${
NC
}
:
${
serverName
}${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
2
}
${
NC
}
:
${
serverName
}${
NC
}
"
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To start
Taos
Adapter
${
NC
}
: taosadapter &
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
${
clientName2
}
Adapter
${
NC
}
: taosadapter &
${
NC
}
"
fi
if
[
!
-z
"
$firstEp
"
]
;
then
...
...
@@ -970,24 +970,24 @@ function installProduct() {
tmpPort
=
""
fi
if
[[
"
$tmpPort
"
!=
""
]]
;
then
echo
-e
"
${
GREEN_DARK
}
To access
${
productName
}
${
NC
}
:
${
clientName
}
-h
$tmpFqdn
-P
$tmpPort
${
GREEN_DARK
}
to login into cluster, then
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To access
${
productName
2
}
${
NC
}
:
${
clientName2
}
-h
$tmpFqdn
-P
$tmpPort
${
GREEN_DARK
}
to login into cluster, then
${
NC
}
"
else
echo
-e
"
${
GREEN_DARK
}
To access
${
productName
}
${
NC
}
:
${
clientName
}
-h
$tmpFqdn
${
GREEN_DARK
}
to login into cluster, then
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To access
${
productName
2
}
${
NC
}
:
${
clientName2
}
-h
$tmpFqdn
${
GREEN_DARK
}
to login into cluster, then
${
NC
}
"
fi
echo
-e
"
${
GREEN_DARK
}
execute
${
NC
}
: create dnode 'newDnodeFQDN:port';
${
GREEN_DARK
}
to add this new node
${
NC
}
"
echo
elif
[
!
-z
"
$serverFqdn
"
]
;
then
echo
-e
"
${
GREEN_DARK
}
To access
${
productName
}
${
NC
}
:
${
clientName
}
-h
$serverFqdn
${
GREEN_DARK
}
to login into
${
productName
}
server
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To access
${
productName
2
}
${
NC
}
:
${
clientName2
}
-h
$serverFqdn
${
GREEN_DARK
}
to login into
${
productName2
}
server
${
NC
}
"
echo
fi
echo
-e
"
\0
33[44;32;1m
${
productName
}
is installed successfully!
${
NC
}
"
echo
-e
"
\0
33[44;32;1m
${
productName
2
}
is installed successfully!
${
NC
}
"
echo
else
# Only install client
install_bin
install_config
echo
echo
-e
"
\0
33[44;32;1m
${
productName
}
client is installed successfully!
${
NC
}
"
echo
-e
"
\0
33[44;32;1m
${
productName
2
}
client is installed successfully!
${
NC
}
"
fi
touch
~/.
${
historyFile
}
...
...
packaging/tools/install_client.sh
浏览文件 @
40d99e45
...
...
@@ -17,7 +17,7 @@ serverName="taosd"
clientName
=
"taos"
uninstallScript
=
"rmtaos"
configFile
=
"taos.cfg"
tarName
=
"
taos
.tar.gz"
tarName
=
"
package
.tar.gz"
osType
=
Linux
pagMode
=
full
...
...
packaging/tools/make_install.sh
浏览文件 @
40d99e45
...
...
@@ -606,23 +606,23 @@ function update_TDengine() {
echo
-e
"
${
GREEN_DARK
}
To configure
${
productName
}
${
NC
}
: edit
${
configDir
}
/
${
configFile
}
"
[
-f
${
configDir
}
/taosadapter.toml
]
&&
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To configure
Taos
Adapter
${
NC
}
: edit
${
configDir
}
/taosadapter.toml"
echo
-e
"
${
GREEN_DARK
}
To configure Adapter
${
NC
}
: edit
${
configDir
}
/taosadapter.toml"
if
((
${
service_mod
}
==
0
))
;
then
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
}
${
NC
}
:
${
csudo
}
systemctl start
${
serverName
}${
NC
}
"
[
-f
${
service_config_dir
}
/taosadapter.service
]
&&
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To start
Taos Adatp
er
${
NC
}
:
${
csudo
}
systemctl start taosadapter
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
Adapt
er
${
NC
}
:
${
csudo
}
systemctl start taosadapter
${
NC
}
"
elif
((
${
service_mod
}
==
1
))
;
then
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
}
${
NC
}
:
${
csudo
}
service
${
serverName
}
start
${
NC
}
"
[
-f
${
service_config_dir
}
/taosadapter.service
]
&&
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To start
Taos
Adapter
${
NC
}
:
${
csudo
}
service taosadapter start
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start Adapter
${
NC
}
:
${
csudo
}
service taosadapter start
${
NC
}
"
else
if
[
"
$osType
"
!=
"Darwin"
]
;
then
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
}
${
NC
}
:
${
serverName
}${
NC
}
"
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To start
Taos
Adapter
${
NC
}
: taosadapter &
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start Adapter
${
NC
}
: taosadapter &
${
NC
}
"
else
echo
-e
"
${
GREEN_DARK
}
To start service
${
NC
}
: launchctl start com.tdengine.taosd
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
Taos
Adapter
${
NC
}
: launchctl start com.tdengine.taosadapter
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start Adapter
${
NC
}
: launchctl start com.tdengine.taosadapter
${
NC
}
"
fi
fi
...
...
@@ -658,23 +658,23 @@ function install_TDengine() {
echo
echo
-e
"
${
GREEN_DARK
}
To configure
${
productName
}
${
NC
}
: edit
${
configDir
}
/
${
configFile
}
"
[
-f
${
configDir
}
/taosadapter.toml
]
&&
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To configure
Taos
Adapter
${
NC
}
: edit
${
configDir
}
/taosadapter.toml"
echo
-e
"
${
GREEN_DARK
}
To configure Adapter
${
NC
}
: edit
${
configDir
}
/taosadapter.toml"
if
((
${
service_mod
}
==
0
))
;
then
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
}
${
NC
}
:
${
csudo
}
systemctl start
${
serverName
}${
NC
}
"
[
-f
${
service_config_dir
}
/taosadapter.service
]
&&
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To start
Taos
Adapter
${
NC
}
:
${
csudo
}
systemctl start taosadapter
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start Adapter
${
NC
}
:
${
csudo
}
systemctl start taosadapter
${
NC
}
"
elif
((
${
service_mod
}
==
1
))
;
then
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
}
${
NC
}
:
${
csudo
}
service
${
serverName
}
start
${
NC
}
"
[
-f
${
service_config_dir
}
/taosadapter.service
]
&&
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To start
Taos
Adapter
${
NC
}
:
${
csudo
}
service taosadapter start
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start Adapter
${
NC
}
:
${
csudo
}
service taosadapter start
${
NC
}
"
else
if
[
"
$osType
"
!=
"Darwin"
]
;
then
echo
-e
"
${
GREEN_DARK
}
To start
${
productName
}
${
NC
}
:
${
serverName
}${
NC
}
"
[
-f
${
installDir
}
/bin/taosadapter
]
&&
\
echo
-e
"
${
GREEN_DARK
}
To start
Taos
Adapter
${
NC
}
: taosadapter &
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start Adapter
${
NC
}
: taosadapter &
${
NC
}
"
else
echo
-e
"
${
GREEN_DARK
}
To start service
${
NC
}
: launchctl start com.tdengine.taosd
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start
Taos
Adapter
${
NC
}
: launchctl start com.tdengine.taosadapter
${
NC
}
"
echo
-e
"
${
GREEN_DARK
}
To start Adapter
${
NC
}
: launchctl start com.tdengine.taosadapter
${
NC
}
"
fi
fi
...
...
packaging/tools/makeclient.sh
浏览文件 @
40d99e45
...
...
@@ -24,7 +24,7 @@ clientName2="${12}"
productName
=
"TDengine"
clientName
=
"taos"
configFile
=
"taos.cfg"
tarName
=
"
taos
.tar.gz"
tarName
=
"
package
.tar.gz"
if
[
"
$osType
"
!=
"Darwin"
]
;
then
script_dir
=
"
$(
dirname
$(
readlink
-f
$0
))
"
...
...
packaging/tools/makepkg.sh
浏览文件 @
40d99e45
...
...
@@ -28,7 +28,7 @@ productName="TDengine"
serverName
=
"taosd"
clientName
=
"taos"
configFile
=
"taos.cfg"
tarName
=
"
taos
.tar.gz"
tarName
=
"
package
.tar.gz"
dumpName
=
"taosdump"
benchmarkName
=
"taosBenchmark"
toolsName
=
"taostools"
...
...
@@ -171,22 +171,22 @@ if [ -n "${taostools_bin_files}" ]; then
&&
cp
${
taostools_bin_files
}
${
taostools_install_dir
}
/bin
\
&&
chmod
a+x
${
taostools_install_dir
}
/bin/
*
||
:
if
[
-f
${
top_dir
}
/tools/taos-tools/packaging/tools/install-t
aost
ools.sh
]
;
then
cp
${
top_dir
}
/tools/taos-tools/packaging/tools/install-t
aost
ools.sh
\
if
[
-f
${
top_dir
}
/tools/taos-tools/packaging/tools/install-tools.sh
]
;
then
cp
${
top_dir
}
/tools/taos-tools/packaging/tools/install-tools.sh
\
${
taostools_install_dir
}
/
>
/dev/null
\
&&
chmod
a+x
${
taostools_install_dir
}
/install-t
aost
ools.sh
\
||
echo
-e
"failed to copy install-t
aost
ools.sh"
&&
chmod
a+x
${
taostools_install_dir
}
/install-tools.sh
\
||
echo
-e
"failed to copy install-tools.sh"
else
echo
-e
"install-t
aost
ools.sh not found"
echo
-e
"install-tools.sh not found"
fi
if
[
-f
${
top_dir
}
/tools/taos-tools/packaging/tools/uninstall-t
aost
ools.sh
]
;
then
cp
${
top_dir
}
/tools/taos-tools/packaging/tools/uninstall-t
aost
ools.sh
\
if
[
-f
${
top_dir
}
/tools/taos-tools/packaging/tools/uninstall-tools.sh
]
;
then
cp
${
top_dir
}
/tools/taos-tools/packaging/tools/uninstall-tools.sh
\
${
taostools_install_dir
}
/
>
/dev/null
\
&&
chmod
a+x
${
taostools_install_dir
}
/uninstall-t
aost
ools.sh
\
||
echo
-e
"failed to copy uninstall-t
aost
ools.sh"
&&
chmod
a+x
${
taostools_install_dir
}
/uninstall-tools.sh
\
||
echo
-e
"failed to copy uninstall-tools.sh"
else
echo
-e
"uninstall-t
aost
ools.sh not found"
echo
-e
"uninstall-tools.sh not found"
fi
if
[
-f
${
build_dir
}
/lib/libavro.so.23.0.0
]
;
then
...
...
packaging/tools/post.sh
浏览文件 @
40d99e45
...
...
@@ -530,7 +530,7 @@ function install_service_on_sysvinit() {
function
clean_service_on_systemd
()
{
taosd_service_config
=
"
${
service_config_dir
}
/taosd.service"
# taosd service already is stoped before install in preinst script
# taosd service already is stop
p
ed before install in preinst script
#if systemctl is-active --quiet taosd; then
# echo "TDengine is running, stopping it..."
# ${csudo}systemctl stop taosd &> /dev/null || echo &> /dev/null
...
...
packaging/tools/release_note
浏览文件 @
40d99e45
...
...
@@ -72,7 +72,7 @@ New Features:
taos-1.4.13 (Released on 2018-12-14)
Bugs Fixed:
- Clients failed to connect to server due to unexpected and invalid packets rec
ie
ved by the server.
- Clients failed to connect to server due to unexpected and invalid packets rec
ei
ved by the server.
Features Added:
- Add support to HikariCP in TSDB JDBC driver.
...
...
packaging/tools/repair_link.sh
浏览文件 @
40d99e45
...
...
@@ -8,7 +8,7 @@ read -p "Please enter link directory such as /var/lib/taos/tsdb: " linkDir
while
true
;
do
if
[
!
-d
$linkDir
]
;
then
read
-p
"Pa
ht
not exists, please enter the correct link path:"
linkDir
read
-p
"Pa
th
not exists, please enter the correct link path:"
linkDir
continue
fi
break
...
...
@@ -28,12 +28,12 @@ for linkFile in $(find -L $linkDir -xtype l); do
if
[
-z
"
${
dirHash
[
"
$dirName
"
]
}
"
]
;
then
read
-p
"Please enter the directory to replace
${
dirName
}
:"
newDir
read
-p
"Do you want to repl
cace all[y/N]?"
replc
aceAll
if
[[
(
"
${
repl
caceAll
}
"
==
"y"
)
||
(
"
${
replc
aceAll
}
"
==
"Y"
)
]]
;
then
read
-p
"Do you want to repl
ace all[y/N]?"
repl
aceAll
if
[[
(
"
${
repl
aceAll
}
"
==
"y"
)
||
(
"
${
repl
aceAll
}
"
==
"Y"
)
]]
;
then
dirHash[
"
$dirName
"
]=
"
$newDir
"
fi
fi
# Repl
c
ace the file
# Replace the file
ln
-sf
"
${
newDir
}
/
${
baseName
}
"
"
${
linkFile
}
"
done
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录