提交 5628086b 编写于 作者: L lihui

[TBASE-1357]

上级 71c1dcb2
...@@ -78,23 +78,24 @@ osinfo=$(cat /etc/os-release | grep "NAME" | cut -d '"' -f2) ...@@ -78,23 +78,24 @@ osinfo=$(cat /etc/os-release | grep "NAME" | cut -d '"' -f2)
#echo "osinfo: ${osinfo}" #echo "osinfo: ${osinfo}"
os_type=0 os_type=0
if echo $osinfo | grep -qwi "ubuntu" ; then if echo $osinfo | grep -qwi "ubuntu" ; then
echo "this is ubuntu system" echo "This is ubuntu system"
os_type=1 os_type=1
elif echo $osinfo | grep -qwi "debian" ; then elif echo $osinfo | grep -qwi "debian" ; then
echo "this is debian system" echo "This is debian system"
os_type=1 os_type=1
elif echo $osinfo | grep -qwi "Kylin" ; then elif echo $osinfo | grep -qwi "Kylin" ; then
echo "this is Kylin system" echo "This is Kylin system"
os_type=1 os_type=1
elif echo $osinfo | grep -qwi "centos" ; then elif echo $osinfo | grep -qwi "centos" ; then
echo "this is centos system" echo "This is centos system"
os_type=2 os_type=2
elif echo $osinfo | grep -qwi "fedora" ; then elif echo $osinfo | grep -qwi "fedora" ; then
echo "this is fedora system" echo "This is fedora system"
os_type=2 os_type=2
else else
echo "this is other linux system" echo "${osinfo}: This is an officially unverified linux system, If there are any problems with the installation and operation, "
os_type=0 echo "please feel free to contact taosdata.com for support."
os_type=1
fi fi
function kill_taosd() { function kill_taosd() {
......
...@@ -105,10 +105,10 @@ if [ "$osType" != "Darwin" ]; then ...@@ -105,10 +105,10 @@ if [ "$osType" != "Darwin" ]; then
echo "this is fedora system" echo "this is fedora system"
os_type=2 os_type=2
else else
echo "this is other linux system" echo "${osinfo}: This is an officially unverified linux system, If there are any problems with the installation and operation, "
os_type=0 echo "please feel free to contact taosdata.com for support."
os_type=1
fi fi
fi fi
function kill_taosd() { function kill_taosd() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册