未验证 提交 828978ec 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

Hotfix/sangshuduo/td 10863 blm3 service centos7 (#8592)

* [TD-10863]<fix>: blm3 service on centos7

* fix cmake define to support build_http better

* install for libtaos required by go build

* fix blm3 service install seq
上级 be11f941
......@@ -158,17 +158,12 @@ if pidof taosd &> /dev/null; then
fi
# if taos.cfg already exist, remove it
if [ -f %{cfg_install_dir}/taos.cfg ]; then
${csudo} rm -f %{homepath}/cfg/taos.cfg || :
${csudo} rm -f %{cfg_install_dir}/cfg/taos.cfg || :
fi
# if blm.toml already exist, remove it
if [ -f %{cfg_install_dir}/blm.toml ]; then
${csudo} rm -f %{homepath}/cfg/blm.toml || :
fi
# if blm3.service already softlink, remove it
if [ -f %{cfg_install_dir}/blm3.service ]; then
${csudo} rm -f %{homepath}/cfg/blm3.service || :
${csudo} rm -f %{cfg_install_dir}/cfg/blm.toml || :
fi
# there can not libtaos.so*, otherwise ln -s error
......
......@@ -467,8 +467,7 @@ function install_service_on_systemd() {
}
function install_blm3_service() {
[ -f ${script_dir}/cfg/blm3.service ] &&\
${csudo} cp ${script_dir}/cfg/blm3.service ${service_config_dir}/
[ -f ${cfg_dir}/blm3.service ] && ${csudo} cp ${cfg_dir}/blm3.service ${service_config_dir}
}
function install_service() {
......@@ -501,10 +500,10 @@ function install_TDengine() {
install_lib
install_avro_lib
install_bin
install_service
install_blm3_service
install_config
install_blm3_config
install_blm3_service
install_service
# Ask if to start the service
#echo
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册