diff --git a/packaging/sed_kh.sh b/packaging/sed_kh.sh index 2510ec6ccff03d74ef9b9a4ca0513039ff32cc90..94c1bdc85a8176a5eccf4acf4be7b3e1562c86c4 100755 --- a/packaging/sed_kh.sh +++ b/packaging/sed_kh.sh @@ -139,6 +139,7 @@ function replace_community_kh() { 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 sed -i "s/adapterName=\"taosadapter\"/adapterName=\"khadapter\"/g" ${top_dir}/packaging/tools/install.sh + sed -i "s/\${csudo}mkdir -p \${install_main_dir}\/examples/#\${csudo}mkdir -p \${install_main_dir}\/examples/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 diff --git a/packaging/tools/install.sh b/packaging/tools/install.sh index f555a1ce25589818b62301951732f48421c259e0..bdacf7c8aa348dc3ef68b3d585dbd2015b076da5 100755 --- a/packaging/tools/install.sh +++ b/packaging/tools/install.sh @@ -173,9 +173,7 @@ function install_main_path() { ${csudo}mkdir -p ${install_main_dir}/bin # ${csudo}mkdir -p ${install_main_dir}/connector ${csudo}mkdir -p ${install_main_dir}/driver - if [ $productName == "TDengine" ]; then - ${csudo}mkdir -p ${install_main_dir}/examples - fi + ${csudo}mkdir -p ${install_main_dir}/examples ${csudo}mkdir -p ${install_main_dir}/include # ${csudo}mkdir -p ${install_main_dir}/init.d if [ "$verMode" == "cluster" ]; then @@ -502,7 +500,6 @@ function install_config() { local_fqdn_check - # first full-qualified domain name (FQDN) for TDengine cluster system echo echo -e -n "${GREEN}Enter FQDN:port (like h1.${emailName}:6030) of an existing ${productName} cluster node to join${NC}" echo @@ -772,7 +769,7 @@ function updateProduct() { tar -zxf ${tarName} install_jemalloc - echo -e "${GREEN}Start to update TDengine...${NC}" + echo -e "${GREEN}Start to update ${productName}...${NC}" # Stop the service if running if pidof ${serverName} &>/dev/null; then if ((${service_mod} == 0)); then @@ -830,13 +827,13 @@ function updateProduct() { echo echo -e "${GREEN_DARK}To configure ${productName} ${NC}: edit ${cfg_install_dir}/${configFile}" - echo -e "${GREEN_DARK}To configure Taos Adapter (if has) ${NC}: edit ${cfg_install_dir}/${adapterName}.toml" + echo -e "${GREEN_DARK}To configure Adapter (if has) ${NC}: edit ${cfg_install_dir}/${adapterName}.toml" if ((${service_mod} == 0)); then echo -e "${GREEN_DARK}To start ${productName} ${NC}: ${csudo}systemctl start ${serverName}${NC}" elif ((${service_mod} == 1)); then echo -e "${GREEN_DARK}To start ${productName} ${NC}: ${csudo}service ${serverName} start${NC}" else - echo -e "${GREEN_DARK}To start Taos Adapter (if has)${NC}: ${adapterName} &${NC}" + echo -e "${GREEN_DARK}To start Adapter (if has)${NC}: ${adapterName} &${NC}" echo -e "${GREEN_DARK}To start ${productName} ${NC}: ./${serverName}${NC}" fi @@ -922,7 +919,7 @@ function installProduct() { elif ((${service_mod} == 1)); then echo -e "${GREEN_DARK}To start ${productName} ${NC}: ${csudo}service ${serverName} start${NC}" else - echo -e "${GREEN_DARK}To start Taos Adapter (if has)${NC}: ${adapterName} &${NC}" + echo -e "${GREEN_DARK}To start Adapter (if has)${NC}: ${adapterName} &${NC}" echo -e "${GREEN_DARK}To start ${productName} ${NC}: ${serverName}${NC}" fi