Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
13317df1
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看板
提交
13317df1
编写于
1月 06, 2022
作者:
Z
zyyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TS-997]<release>(other): release packaging scripts modify for kh
上级
32d7abcc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
136 addition
and
34 deletion
+136
-34
packaging/cfg/khserver.service
packaging/cfg/khserver.service
+21
-0
packaging/sed_kh.sh
packaging/sed_kh.sh
+115
-34
未找到文件。
packaging/cfg/khserver.service
0 → 100644
浏览文件 @
13317df1
[Unit]
Description
=
KingHistorian server service
After
=
network-online.target taosadapter.service
Wants
=
network-online.target taosadapter.service
[Service]
Type
=
simple
ExecStart
=
/usr/bin/khserver
ExecStartPre
=
/usr/local/kinghistorian/bin/startPre.sh
TimeoutStopSec
=
1000000s
LimitNOFILE
=
infinity
LimitNPROC
=
infinity
LimitCORE
=
infinity
TimeoutStartSec
=
0
StandardOutput
=
null
Restart
=
always
StartLimitBurst
=
3
StartLimitInterval
=
60s
[Install]
WantedBy
=
multi-user.target
packaging/sed_kh.sh
浏览文件 @
13317df1
#!/bin/bash
function
replace_community_kh
(){
function
replace_community_kh
()
{
# cmake/install.inc
sed
-i
"s/C:
\/
TDengine/C:
\/
KingHistorian/g"
${
top_dir
}
/cmake/install.inc
sed
-i
"s/taos
\.
cfg/kinghistorian
\.
cfg/g"
${
top_dir
}
/cmake/install.inc
sed
-i
"s/taos
\.
exe/khclient
\.
exe/g"
${
top_dir
}
/cmake/install.inc
sed
-i
"s/taosdemo
\.
exe/khdemo
\.
exe/g"
${
top_dir
}
/cmake/install.inc
# src/kit/shell/CMakeLists.txt
sed
-i
"s/OUTPUT_NAME taos/OUTPUT_NAME khclient/g"
${
top_dir
}
/src/kit/shell/CMakeLists.txt
# src/kit/shell/inc/shell.h
sed
-i
"s/taos_history/kh_history/g"
${
top_dir
}
/src/kit/shell/inc/shell.h
# src/inc/taosdef.h
sed
-i
"s/
\"
taosdata
\"
/
\"
khroot
\"
/g"
${
top_dir
}
/src/inc/taosdef.h
# src/util/src/tconfig.c
sed
-i
"s/taos
\.
cfg/kinghistorian
\.
cfg/g"
${
top_dir
}
/src/util/src/tconfig.c
sed
-i
"s/etc
\/
taos/etc
\/
kinghistorian/g"
${
top_dir
}
/src/util/src/tconfig.c
# src/kit/taosdemo/taosdemo.c
sed
-i
"s/taosdemo --help/khdemo --help/g"
${
top_dir
}
/src/kit/taosdemo/taosdemo.c
sed
-i
"s/taosdemo --usage/khdemo --usage/g"
${
top_dir
}
/src/kit/taosdemo/taosdemo.c
sed
-i
"s/Usage: taosdemo/Usage: khdemo/g"
${
top_dir
}
/src/kit/taosdemo/taosdemo.c
sed
-i
"s/taosdemo is simulating/khdemo is simulating/g"
${
top_dir
}
/src/kit/taosdemo/taosdemo.c
sed
-i
"s/taosdemo version/khdemo version/g"
${
top_dir
}
/src/kit/taosdemo/taosdemo.c
sed
-i
"s/
\"
taosdata
\"
/
\"
khroot
\"
/g"
${
top_dir
}
/src/kit/taosdemo/taosdemo.c
sed
-i
"s/support@taosdata
\.
com/support@wellintech
\.
com/g"
${
top_dir
}
/src/kit/taosdemo/taosdemo.c
sed
-i
"s/taosc, rest, and stmt/khclient, rest, and stmt/g"
${
top_dir
}
/src/kit/taosdemo/taosdemo.c
sed
-i
"s/taosdemo uses/khdemo uses/g"
${
top_dir
}
/src/kit/taosdemo/taosdemo.c
sed
-i
"s/use 'taosc'/use 'khclient'/g"
${
top_dir
}
/src/kit/taosdemo/taosdemo.c
sed
-i
"s/taos
\.
cfg/kinghistorian
\.
cfg/g"
${
top_dir
}
/src/util/src/tconfig.c
sed
-i
"s/etc
\/
taos/etc
\/
kinghistorian/g"
${
top_dir
}
/src/util/src/tconfig.c
sed
-i
"s/taos config/kinghistorian config/g"
${
top_dir
}
/src/util/src/tconfig.c
# src/util/src/tlog.c
sed
-i
"s/log
\/
taos/log
\/
kinghistorian/g"
${
top_dir
}
/src/util/src/tlog.c
sed
-i
"s/log
\/
taos/log
\/
kinghistorian/g"
${
top_dir
}
/src/util/src/tlog.c
# src/dnode/src/dnodeSystem.c
sed
-i
"s/TDengine/KingHistorian/g"
${
top_dir
}
/src/dnode/src/dnodeSystem.c
sed
-i
"s/TDengine/KingHistorian/g"
${
top_dir
}
/src/dnode/src/dnodeMain.c
sed
-i
"s/taosdlog/khserverlog/g"
${
top_dir
}
/src/dnode/src/dnodeMain.c
sed
-i
"s/TDengine/KingHistorian/g"
${
top_dir
}
/src/dnode/src/dnodeSystem.c
sed
-i
"s/TDengine/KingHistorian/g"
${
top_dir
}
/src/dnode/src/dnodeMain.c
sed
-i
"s/taosdlog/khserverlog/g"
${
top_dir
}
/src/dnode/src/dnodeMain.c
# src/client/src/tscSystem.c
sed
-i
"s/taoslog/khclientlog/g"
${
top_dir
}
/src/client/src/tscSystem.c
sed
-i
"s/taoslog/khclientlog/g"
${
top_dir
}
/src/client/src/tscSystem.c
# src/util/src/tnote.c
sed
-i
"s/taosinfo/khinfo/g"
${
top_dir
}
/src/util/src/tnote.c
sed
-i
"s/taosinfo/khinfo/g"
${
top_dir
}
/src/util/src/tnote.c
# src/dnode/CMakeLists.txt
sed
-i
"s/taos
\.
cfg/kinghistorian
\.
cfg/g"
${
top_dir
}
/src/dnode/CMakeLists.txt
# src/kit/taosdump/taosdump.c
sed
-i
"s/support@taosdata
\.
com/support@wellintech
\.
com/g"
${
top_dir
}
/src/kit/taosdump/taosdump.c
sed
-i
"s/Default is taosdata/Default is khroot/g"
${
top_dir
}
/src/kit/taosdump/taosdump.c
sed
-i
"s/
\"
taosdata
\"
/
\"
khroot
\"
/g"
${
top_dir
}
/src/kit/taosdump/taosdump.c
sed
-i
"s/TDengine/KingHistorian/g"
${
top_dir
}
/src/kit/taosdump/taosdump.c
sed
-i
"s/taos
\/
taos
\.
cfg/kinghistorian
\/
kinghistorian
\.
cfg/g"
${
top_dir
}
/src/kit/taosdump/taosdump.c
sed
-i
"s/taos
\.
cfg/kinghistorian
\.
cfg/g"
${
top_dir
}
/src/dnode/CMakeLists.txt
echo
"SET_TARGET_PROPERTIES(taosd PROPERTIES OUTPUT_NAME khclient)"
>>
${
top_dir
}
/src/dnode/CMakeLists.txt
# src/os/src/linux/linuxEnv.c
sed
-i
"s/etc
\/
taos/etc
\/
kinghistorian/g"
${
top_dir
}
/src/os/src/linux/linuxEnv.c
sed
-i
"s/lib
\/
taos/lib
\/
kinghistorian/g"
${
top_dir
}
/src/os/src/linux/linuxEnv.c
...
...
@@ -54,11 +40,11 @@ function replace_community_kh(){
sed
-i
"s/TDengine shell/KingHistorian shell/g"
${
top_dir
}
/src/kit/shell/src/shellLinux.c
sed
-i
"s/2020 by TAOS Data/2021 by Wellintech/g"
${
top_dir
}
/src/kit/shell/src/shellLinux.c
# src/os/src/windows/wEnv.c
sed
-i
"s/
TDengine
/KingHistorian/g"
${
top_dir
}
/src/os/src/windows/wEnv.c
sed
-i
"s/
C:
\/
TDengine/C:
\
/
KingHistorian/g"
${
top_dir
}
/src/os/src/windows/wEnv.c
# src/kit/shell/src/shellEngine.c
sed
-i
"s/TDengine shell/KingHistorian shell/g"
${
top_dir
}
/src/kit/shell/src/shellEngine.c
sed
-i
"s/2020 by TAOS Data, Inc/2021 by Wellintech, Inc/g"
${
top_dir
}
/src/kit/shell/src/shellEngine.c
sed
-i
"s/taos connect failed/kh connect failed/g"
${
top_dir
}
/src/kit/shell/src/shellEngine.c
sed
-i
"s/taos connect failed/kh
client
connect failed/g"
${
top_dir
}
/src/kit/shell/src/shellEngine.c
sed
-i
"s/
\"
taos>
\"
/
\"
khclient>
\"
/g"
${
top_dir
}
/src/kit/shell/src/shellEngine.c
sed
-i
"s/
\"
->
\"
/
\"
->
\"
/g"
${
top_dir
}
/src/kit/shell/src/shellEngine.c
sed
-i
"s/prompt_size = 6/prompt_size = 10/g"
${
top_dir
}
/src/kit/shell/src/shellEngine.c
...
...
@@ -66,16 +52,111 @@ function replace_community_kh(){
sed
-i
"s/taos connections/kh connections/g"
${
top_dir
}
/src/rpc/src/rpcMain.c
# src/plugins/monitor/src/monMain.c
sed
-i
"s/taosd is quiting/khserver is quiting/g"
${
top_dir
}
/src/plugins/monitor/src/monMain.c
# packaging/tools/makepkg.sh
sed
-i
"s/productName=
\"
TDengine
\"
/productName=
\"
KingHistorian
\"
/g"
${
top_dir
}
/packaging/tools/makepkg.sh
sed
-i
"s/serverName=
\"
taosd
\"
/serverName=
\"
khserver
\"
/g"
${
top_dir
}
/packaging/tools/makepkg.sh
sed
-i
"s/clientName=
\"
taos
\"
/clientName=
\"
khclient
\"
/g"
${
top_dir
}
/packaging/tools/makepkg.sh
sed
-i
"s/configFile=
\"
taos
\.
cfg
\"
/configFile=
\"
kinghistorian
\.
cfg
\"
/g"
${
top_dir
}
/packaging/tools/makepkg.sh
sed
-i
"s/tarName=
\"
taos
\.
tar
\.
gz
\"
/tarName=
\"
kinghistorian
\.
tar
\.
gz
\"
/g"
${
top_dir
}
/packaging/tools/makepkg.sh
# packaging/tools/remove.sh
sed
-i
"s/installDir=
\"\/
usr
\/
local
\/
taos
\"
/installDir=
\"\/
usr
\/
local
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/remove.sh
sed
-i
"s/serverName=
\"
taosd
\"
/serverName=
\"
khserver
\"
/g"
${
top_dir
}
/packaging/tools/remove.sh
sed
-i
"s/clientName=
\"
taos
\"
/clientName=
\"
khclient
\"
/g"
${
top_dir
}
/packaging/tools/remove.sh
sed
-i
"s/uninstallScript=
\"
rmtaos
\"
/uninstallScript=
\"
rmkh
\"
/g"
${
top_dir
}
/packaging/tools/remove.sh
sed
-i
"s/productName=
\"
TDengine
\"
/productName=
\"
KingHistorian
\"
/g"
${
top_dir
}
/packaging/tools/remove.sh
# packaging/tools/startPre.sh
sed
-i
"s/serverName=
\"
taosd
\"
/serverName=
\"
khserver
\"
/g"
${
top_dir
}
/packaging/tools/startPre.sh
sed
-i
"s/logDir=
\"\/
var
\/
log
\/
taos
\"
/logDir=
\"\/
var
\/
log
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/startPre.sh
# packaging/tools/run_taosd.sh
sed
-i
"s/taosd/khserver/g"
${
top_dir
}
/packaging/tools/run_taosd.sh
# packaging/tools/install.sh
sed
-i
"s/clientName=
\"
taos
\"
/clientName=
\"
khclient
\"
/g"
${
top_dir
}
/packaging/tools/install.sh
sed
-i
"s/serverName=
\"
taosd
\"
/serverName=
\"
khserver
\"
/g"
${
top_dir
}
/packaging/tools/install.sh
sed
-i
"s/configFile=
\"
taos
\.
cfg
\"
/configFile=
\"
kinghistorian
\.
cfg
\"
/g"
${
top_dir
}
/packaging/tools/install.sh
sed
-i
"s/productName=
\"
TDengine
\"
/productName=
\"
KingHistorian
\"
/g"
${
top_dir
}
/packaging/tools/install.sh
sed
-i
"s/emailName=
\"
taosdata
\.
com
\"
/emailName=
\"\w
ellintech
\.
com
\"
/g"
${
top_dir
}
/packaging/tools/install.sh
sed
-i
"s/uninstallScript=
\"
rmtaos
\"
/uninstallScript=
\"
rmkh
\"
/g"
${
top_dir
}
/packaging/tools/install.sh
sed
-i
"s/historyFile=
\"
taos_history
\"
/historyFile=
\"
kh_history
\"
/g"
${
top_dir
}
/packaging/tools/install.sh
sed
-i
"s/tarName=
\"
taos
\.
tar
\.
gz
\"
/tarName=
\"
kinghistorian
\.
tar
\.
gz
\"
/g"
${
top_dir
}
/packaging/tools/install.sh
sed
-i
"s/dataDir=
\"\/
var
\/
lib
\/
taos
\"
/dataDir=
\"\/
var
\/
lib
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/install.sh
sed
-i
"s/logDir=
\"\/
var
\/
log
\/
taos
\"
/logDir=
\"\/
var
\/
log
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/install.sh
sed
-i
"s/configDir=
\"\/
etc
\/
taos
\"
/configDir=
\"\/
etc
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/install.sh
sed
-i
"s/installDir=
\"\/
usr
\/
local
\/
taos
\"
/installDir=
\"\/
usr
\/
local
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/install.sh
# packaging/tools/makeclient.sh
sed
-i
"s/productName=
\"
TDengine
\"
/productName=
\"
KingHistorian
\"
/g"
${
top_dir
}
/packaging/tools/makeclient.sh
sed
-i
"s/clientName=
\"
taos
\"
/clientName=
\"
khclient
\"
/g"
${
top_dir
}
/packaging/tools/makeclient.sh
sed
-i
"s/configFile=
\"
taos
\.
cfg
\"
/configFile=
\"
kinghistorian
\.
cfg
\"
/g"
${
top_dir
}
/packaging/tools/makeclient.sh
sed
-i
"s/tarName=
\"
taos
\.
tar
\.
gz
\"
/tarName=
\"
kinghistorian
\.
tar
\.
gz
\"
/g"
${
top_dir
}
/packaging/tools/makeclient.sh
# packaging/tools/remove_client.sh
sed
-i
"s/installDir=
\"\/
usr
\/
local
\/
taos
\"
/installDir=
\"\/
usr
\/
local
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/remove_client.sh
sed
-i
"s/clientName=
\"
taos
\"
/clientName=
\"
khclient
\"
/g"
${
top_dir
}
/packaging/tools/remove_client.sh
sed
-i
"s/uninstallScript=
\"
rmtaos
\"
/uninstallScript=
\"
rmkh
\"
/g"
${
top_dir
}
/packaging/tools/remove_client.sh
# packaging/tools/install_client.sh
sed
-i
"s/dataDir=
\"\/
var
\/
lib
\/
taos
\"
/dataDir=
\"\/
var
\/
lib
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/install_client.sh
sed
-i
"s/logDir=
\"\/
var
\/
log
\/
taos
\"
/logDir=
\"\/
var
\/
log
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/install_client.sh
sed
-i
"s/productName=
\"
TDengine
\"
/productName=
\"
KingHistorian
\"
/g"
${
top_dir
}
/packaging/tools/install_client.sh
sed
-i
"s/installDir=
\"\/
usr
\/
local
\/
taos
\"
/installDir=
\"\/
usr
\/
local
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/install_client.sh
sed
-i
"s/configDir=
\"\/
etc
\/
taos
\"
/configDir=
\"\/
etc
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/install_client.sh
sed
-i
"s/serverName=
\"
taosd
\"
/serverName=
\"
khserver
\"
/g"
${
top_dir
}
/packaging/tools/install_client.sh
sed
-i
"s/clientName=
\"
taos
\"
/clientName=
\"
khclient
\"
/g"
${
top_dir
}
/packaging/tools/install_client.sh
sed
-i
"s/uninstallScript=
\"
rmtaos
\"
/uninstallScript=
\"
rmkh
\"
/g"
${
top_dir
}
/packaging/tools/install_client.sh
sed
-i
"s/configFile=
\"
taos
\.
cfg
\"
/configFile=
\"
kinghistorian
\.
cfg
\"
/g"
${
top_dir
}
/packaging/tools/install_client.sh
sed
-i
"s/tarName=
\"
taos
\.
tar
\.
gz
\"
/tarName=
\"
kinghistorian
\.
tar
\.
gz
\"
/g"
${
top_dir
}
/packaging/tools/install_client.sh
# packaging/tools/makearbi.sh
sed
-i
"s/productName=
\"
TDengine
\"
/productName=
\"
KingHistorian
\"
/g"
${
top_dir
}
/packaging/tools/makearbi.sh
# packaging/tools/remove_arbi.sh
sed
-i
"s/TDengine/KingHistorian/g"
${
top_dir
}
/packaging/tools/remove_arbi.sh
# packaging/tools/install_arbi.sh
sed
-i
"s/TDengine/KingHistorian/g"
${
top_dir
}
/packaging/tools/install_arbi.sh
sed
-i
"s/taosdata
\.
com/wellintech
\.
com/g"
${
top_dir
}
/packaging/tools/install_arbi.sh
# packaging/tools/make_install.sh
sed
-i
"s/clientName=
\"
taos
\"
/clientName=
\"
khclient
\"
/g"
${
top_dir
}
/packaging/tools/make_install.sh
sed
-i
"s/serverName=
\"
taosd
\"
/serverName=
\"
khserver
\"
/g"
${
top_dir
}
/packaging/tools/make_install.sh
sed
-i
"s/logDir=
\"\/
var
\/
log
\/
taos
\"
/logDir=
\"\/
var
\/
log
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/make_install.sh
sed
-i
"s/dataDir=
\"\/
var
\/
lib
\/
taos
\"
/dataDir=
\"\/
var
\/
lib
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/make_install.sh
sed
-i
"s/configDir=
\"\/
etc
\/
taos
\"
/configDir=
\"\/
etc
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/make_install.sh
sed
-i
"s/configFile=
\"
taos
\.
cfg
\"
/configFile=
\"
kinghistorian
\.
cfg
\"
/g"
${
top_dir
}
/packaging/tools/make_install.sh
sed
-i
"s/installDir=
\"\/
usr
\/
local
\/
taos
\"
/installDir=
\"\/
usr
\/
local
\/
kinghistorian
\"
/g"
${
top_dir
}
/packaging/tools/make_install.sh
sed
-i
"s/productName=
\"
TDengine
\"
/productName=
\"
KingHistorian
\"
/g"
${
top_dir
}
/packaging/tools/make_install.sh
sed
-i
"s/emailName=
\"
taosdata
\.
com
\"
/emailName=
\"
wellintech
\.
com
\"
/g"
${
top_dir
}
/packaging/tools/make_install.sh
sed
-i
"s/uninstallScript=
\"
rmtaos
\"
/uninstallScript=
\"
rmkh
\"
/g"
${
top_dir
}
/packaging/tools/make_install.sh
# packaging/rpm/taosd
sed
-i
"s/TDengine/KingHistorian/g"
${
top_dir
}
/packaging/rpm/taosd
sed
-i
"s/usr
\/
local
\/
taos/usr
\/
local
\/
kinghistorian/g"
${
top_dir
}
/packaging/rpm/taosd
sed
-i
"s/taosd/khserver/g"
${
top_dir
}
/packaging/rpm/taosd
# packaging/deb/taosd
sed
-i
"s/TDengine/KingHistorian/g"
${
top_dir
}
/packaging/deb/taosd
sed
-i
"s/usr
\/
local
\/
taos/usr
\/
local
\/
kinghistorian/g"
${
top_dir
}
/packaging/deb/taosd
sed
-i
"s/taosd/khserver/g"
${
top_dir
}
/packaging/deb/taosd
}
function
replace_enterprise_kh
(){
function
replace_enterprise_kh
()
{
# enterprise/src/kit/perfMonitor/perfMonitor.c
sed
-i
"s/
\"
taosdata
\"
/
\"
khroot
\"
/g"
${
top_dir
}
/../enterprise/src/kit/perfMonitor/perfMonitor.c
sed
-i
"s/TDengine/KingHistorian/g"
${
top_dir
}
/../enterprise/src/kit/perfMonitor/perfMonitor.c
# enterprise/src/plugins/admin/src/httpAdminHandle.c
sed
-i
"s/taos
\.
cfg/kinghistorian
\.
cfg/g"
${
top_dir
}
/../enterprise/src/plugins/admin/src/httpAdminHandle.c
sed
-i
"s/taos
\.
cfg/kinghistorian
\.
cfg/g"
${
top_dir
}
/../enterprise/src/plugins/admin/src/httpAdminHandle.c
# enterprise/src/plugins/grant/src/grantMain.c
sed
-i
"s/taos
\.
cfg/kinghistorian
\.
cfg/g"
${
top_dir
}
/../enterprise/src/plugins/grant/src/grantMain.c
sed
-i
"s/taos
\.
cfg/kinghistorian
\.
cfg/g"
${
top_dir
}
/../enterprise/src/plugins/grant/src/grantMain.c
# enterprise/src/plugins/module/src/moduleMain.c
sed
-i
"s/taos
\.
cfg/kinghistorian
\.
cfg/g"
${
top_dir
}
/../enterprise/src/plugins/module/src/moduleMain.c
sed
-i
"s/taos
\.
cfg/kinghistorian
\.
cfg/g"
${
top_dir
}
/../enterprise/src/plugins/module/src/moduleMain.c
# enterprise/src/plugins/web
sed
-i
-e
"s/www
\.
taosdata
\.
com/www
\.
kingview
\.
com/g"
$(
grep
-r
"www.taosdata.com"
${
top_dir
}
/../enterprise/src/plugins/web |
sed
-r
"s/(.*
\.
html):
\s
*(.*)/
\1
/g"
)
sed
-i
-e
"s/2017, TAOS Data/2021, Wellintech/g"
$(
grep
-r
"TAOS Data"
${
top_dir
}
/../enterprise/src/plugins/web |
sed
-r
"s/(.*
\.
html):
\s
*(.*)/
\1
/g"
)
sed
-i
-e
"s/taosd/khserver/g"
$(
grep
-r
"taosd"
${
top_dir
}
/../enterprise/src/plugins/web |
grep
-E
"*
\.
js
\s
*.*"
|
sed
-r
-e
"s/(.*
\.
js):
\s
*(.*)/
\1
/g"
|
sort
|
uniq
)
# enterprise/src/plugins/web/admin/monitor.html
sed
-i
-e
"s/<th style=
\"
font-weight: normal
\"
>taosd<
\/
th>/<th style=
\"
font-weight: normal
\"
>khserver<
\/
th>/g"
${
top_dir
}
/../enterprise/src/plugins/web/admin/monitor.html
sed
-i
-e
"s/data:
\[
'taosd', 'system'
\]
,/data:
\[
'khserver', 'system'
\]
,/g"
${
top_dir
}
/../enterprise/src/plugins/web/admin/monitor.html
sed
-i
-e
"s/name: 'taosd',/name: 'khserver',/g"
${
top_dir
}
/../enterprise/src/plugins/web/admin/monitor.html
# enterprise/src/plugins/web/admin/*.html
sed
-i
"s/TDengine/KingHistorian/g"
${
top_dir
}
/../enterprise/src/plugins/web/admin/
*
.html
# enterprise/src/plugins/web/admin/js/*.js
sed
-i
"s/TDengine/KingHistorian/g"
${
top_dir
}
/../enterprise/src/plugins/web/admin/js/
*
.js
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录