diff --git a/packaging/tools/post.sh b/packaging/tools/post.sh index 93849dd4ebef00512854b4dfff8b57f4b44f7797..4586409493652d8e6486687b5c2518e1dfb87c06 100755 --- a/packaging/tools/post.sh +++ b/packaging/tools/post.sh @@ -120,6 +120,7 @@ function install_bin() { [ -x ${bin_dir}/taosd ] && ${csudo}ln -s ${bin_dir}/taosd ${bin_link_dir}/taosd || : [ -x ${bin_dir}/taosadapter ] && ${csudo}ln -s ${bin_dir}/taosadapter ${bin_link_dir}/taosadapter || : [ -x ${bin_dir}/taosBenchmark ] && ${csudo}ln -sf ${bin_dir}/taosBenchmark ${bin_link_dir}/taosdemo || : + [ -x ${bin_dir}/taosBenchmark ] && ${csudo}ln -sf ${bin_dir}/taosBenchmark ${bin_link_dir}/taosBenchmark || : [ -x ${bin_dir}/TDinsight.sh ] && ${csudo}ln -sf ${bin_dir}/TDinsight.sh ${bin_link_dir}/TDinsight.sh || : [ -x ${bin_dir}/taosdump ] && ${csudo}ln -s ${bin_dir}/taosdump ${bin_link_dir}/taosdump || : [ -x ${bin_dir}/set_core.sh ] && ${csudo}ln -s ${bin_dir}/set_core.sh ${bin_link_dir}/set_core || : diff --git a/packaging/tools/remove.sh b/packaging/tools/remove.sh index b129d12840ee6a85807eb5f2e1f1e6d13814a94e..f886d08df0b127c2dcec494b220104e39e4bce13 100755 --- a/packaging/tools/remove.sh +++ b/packaging/tools/remove.sh @@ -23,6 +23,7 @@ data_link_dir=${installDir}/data log_link_dir=${installDir}/log cfg_link_dir=${installDir}/cfg bin_link_dir="/usr/bin" +local_bin_link_dir="/usr/local/bin" lib_link_dir="/usr/lib" lib64_link_dir="/usr/lib64" inc_link_dir="/usr/include" @@ -78,6 +79,7 @@ function kill_tarbitrator() { ${csudo}kill -9 $pid || : fi } + function clean_bin() { # Remove link ${csudo}rm -f ${bin_link_dir}/${clientName} || : @@ -93,6 +95,11 @@ function clean_bin() { ${csudo}rm -f ${bin_link_dir}/TDinsight.sh || : } +function clean_local_bin() { + ${csudo}rm -f ${local_bin_link_dir}/taosBenchmark || : + ${csudo}rm -f ${local_bin_link_dir}/taosdemo || : +} + function clean_lib() { # Remove link ${csudo}rm -f ${lib_link_dir}/libtaos.* || : @@ -213,6 +220,8 @@ function clean_service() { clean_service # Remove binary file and links clean_bin +# Remove links of local bin +clean_local_bin # Remove header file. clean_header # Remove lib file