diff --git a/build/script/cmake_package_mini.sh b/build/script/cmake_package_mini.sh index a02796dc2..cfe15d5de 100644 --- a/build/script/cmake_package_mini.sh +++ b/build/script/cmake_package_mini.sh @@ -48,6 +48,8 @@ elif [ X"$kernel" == X"centos" ]; then dist_version="CentOS" elif [ X"$kernel" == X"openeuler" ]; then dist_version="openEuler" +elif [ X"$kernel" == X"loongnix-server" ]; then + dist_version="loongnix" else dist_version="Platform" fi diff --git a/build/script/utils/common.sh b/build/script/utils/common.sh index a34eca825..e4d909015 100644 --- a/build/script/utils/common.sh +++ b/build/script/utils/common.sh @@ -77,6 +77,8 @@ elif [[ -f "/etc/kylin-release" ]]; then os_name="Kylin" elif [[ -f "/etc/asianux-release" ]]; then os_name="Asianux" +elif [[ -f "/etc/loongnix-release" ]]; then + os_name="loongnix" else os_name=$(lsb_release -d | awk -F ' ' '{print $2}'| tr A-Z a-z | sed 's/.*/\L&/; s/[a-z]*/\u&/g') fi diff --git a/simpleInstall/install.sh b/simpleInstall/install.sh index 0a38bc076..062d13c26 100644 --- a/simpleInstall/install.sh +++ b/simpleInstall/install.sh @@ -200,10 +200,10 @@ function set_environment() { then echo 'export GS_CLUSTER_NAME=dbCluster' >> ~/.bashrc fi - if [ X"$(grep 'ulimit -n 1000000' ~/.bashrc)" == X"" ] - then - echo 'ulimit -n 1000000' >> ~/.bashrc - fi + #if [ X"$(grep 'ulimit -n 1000000' ~/.bashrc)" == X"" ] + #then + # echo 'ulimit -n 1000000' >> ~/.bashrc + #fi # set GAUSSHOME path_env_line=$(cat ~/.bashrc | grep -n 'export PATH=$GAUSSHOME/bin:$PATH' | awk -F ':' '{print $1}') ld_env_line=$(grep -n 'export LD_LIBRARY_PATH=$GAUSSHOME/lib:$LD_LIBRARY_PATH' ~/.bashrc | awk -F ':' '{print $1}')