From 9da422905fac6b436f2c79bc4508d90fd256246e Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Tue, 9 Nov 2021 12:44:44 +0800 Subject: [PATCH] Hotfix/sangshuduo/td 10896 use taosa insteadof blm3 (#8616) * [TD-10896]: replace blm3 with taosadapter * fix script to install taosadapter.service --- packaging/tools/make_install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packaging/tools/make_install.sh b/packaging/tools/make_install.sh index 10fd75208c..8309fa516c 100755 --- a/packaging/tools/make_install.sh +++ b/packaging/tools/make_install.sh @@ -520,8 +520,13 @@ function install_service_on_systemd() { } function install_taosadapter_service() { - [ -f ${script_dir}/cfg/taosadapter.service ] &&\ - ${csudo} cp ${script_dir}/cfg/taosadapter.service ${service_config_dir}/ + if ((${service_mod}==0)); then + [ -f ${binary_dir}/test/cfg/taosadapter.service ] &&\ + ${csudo} cp ${binary_dir}/test/cfg/taosadapter.service\ + ${service_config_dir}/ || : + else + kill_taosadapter + fi } function install_service() { @@ -531,7 +536,6 @@ function install_service() { install_service_on_sysvinit else # must manual stop taosd - kill_taosadapter kill_taosd fi } -- GitLab