TD-26973: update script
This commit is contained in:
parent
d58b964b25
commit
828eab10db
|
@ -373,6 +373,7 @@ function add_newHostname_to_hosts() {
|
||||||
if grep -q "127.0.0.1 $1" /etc/hosts; then
|
if grep -q "127.0.0.1 $1" /etc/hosts; then
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
|
${csudo}chmod 666 /etc/hosts
|
||||||
${csudo}echo "127.0.0.1 $1" >>/etc/hosts
|
${csudo}echo "127.0.0.1 $1" >>/etc/hosts
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -956,7 +957,7 @@ function updateProduct() {
|
||||||
echo "${productName2} is updated successfully!"
|
echo "${productName2} is updated successfully!"
|
||||||
echo
|
echo
|
||||||
if [ "$verMode" == "cluster" ];then
|
if [ "$verMode" == "cluster" ];then
|
||||||
echo -e "\033[44;32;1mTo start all the components : sudo ./start-all.sh${NC}"
|
echo -e "\033[44;32;1mTo start all the components : ./start-all.sh${NC}"
|
||||||
fi
|
fi
|
||||||
echo -e "\033[44;32;1mTo access ${productName2} : ${clientName2} -h $serverFqdn${NC}"
|
echo -e "\033[44;32;1mTo access ${productName2} : ${clientName2} -h $serverFqdn${NC}"
|
||||||
if [ "$verMode" == "cluster" ];then
|
if [ "$verMode" == "cluster" ];then
|
||||||
|
|
|
@ -275,7 +275,7 @@ function remove_data_and_config() {
|
||||||
fi
|
fi
|
||||||
log_dir=`grep logDir /etc/taos/taos.cfg | grep -v '#' | tail -n 1 | awk {'print $2'}`
|
log_dir=`grep logDir /etc/taos/taos.cfg | grep -v '#' | tail -n 1 | awk {'print $2'}`
|
||||||
if [ X"$log_dir" == X"" ]; then
|
if [ X"$log_dir" == X"" ]; then
|
||||||
log_dir="/var/lib/taos"
|
log_dir="/var/log/taos"
|
||||||
fi
|
fi
|
||||||
${csudo}rm -rf ${config_dir}/*
|
${csudo}rm -rf ${config_dir}/*
|
||||||
${csudo}rm -rf ${data_dir}/*
|
${csudo}rm -rf ${data_dir}/*
|
||||||
|
|
Loading…
Reference in New Issue